influxweb
7/13/2016 - 9:13 PM

getScrollPosition.js

var getScrollPosition = function () {
    return {
        x: Math.max(window.pageXOffset, document.documentElement.scrollLeft, document.body.scrollLeft),
        y: Math.max(window.pageYOffset, document.documentElement.scrollTop, document.body.scrollTop)
    };
};