getScrollOffsets
1.6.0
document.viewport.getScrollOffsets() -> [Number, Number] also accessible as { top: Number, left: Number }
Returns the viewport’s horizontal and vertical scroll offsets.
Examples
document.viewport.getScrollOffsets();
//-> { left: 0, top: 0 }
window.scrollTo(0, 120);
document.viewport.getScrollOffsets();
//-> { left: 0, top: 120 }