Raster.getElementScrolling( element )

Returns an object containing the sum of the scroll (x,y) offsets of the given element and its parents.

Parameters

Name Type   Description
element object A DOM element.

Returns

Type Description
object An point object containing the scroll (x,y) offsets of the given element. The returned object has the following fields:
x   Element's sum of scroll left
y   Element's sum of scroll top
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López