Elementals.js

Latest Version: 3.4 PRODUCTION 18 November 2017

Method _.Metrics.Scroll.x

Summary:

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

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