Elementals.js

Latest Version: 3.7 Final 20 December 2018

Method _.Metrics.Scroll.y

Summary:

The current vertical scroll position of the element, or the window if element is omitted.

Calling Convention:
_.Metrics.Scroll.y([Element])
Parameters:
Element Optional
The element you want the scrollbar Y position of. If omitted a cross-browser method for finding the window scroll location will be used.
Returns:
The vertical scroll position

Advertisement