build/module/lib/controls/scrolled.js
/**
 * A cross-browser compatible, geometric, implementation of scrollX and scrollY.
 *
 * See https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollX
 * @hidden
 */
A cross-browser compatible, geometric, implementation of scrollX and scrollY.
A cross - browser compatible geometric implementation of scrollX and scrollY .
function scrolled(out) {
    out.a = 0;
    out.b = 0;
    if (window.pageXOffset !== void 0 && window.pageYOffset !== void 0) {
        out.x = window.pageXOffset;
        out.y = window.pageYOffset;
    }
    else {
        var domE = domElement();
        out.x = domE.scrollLeft;
        out.y = domE.scrollTop;
    }
}
function scrolled ( out ) { out . a = 0 ; out . b = 0 ; if ( window . pageXOffset !== void 0 && window . pageYOffset !== void 0 ) { out . x = window . pageXOffset ; out . y = window . pageYOffset ; } else { var domE = domElement ( ) ; out . x = domE . scrollLeft ; out . y = domE . scrollTop ; } }
A cross-browser compatible, geometric, implementation of scrollX and scrollY.
A cross - browser compatible geometric implementation of scrollX and scrollY .