debian-mirror-gitlab/spec/frontend/helpers/dom_shims/scroll_by.js

8 lines
120 B
JavaScript
Raw Normal View History

2020-04-08 14:13:33 +05:30
window.scrollX = 0;
window.scrollY = 0;
window.scrollBy = (x, y) => {
window.scrollX += x;
window.scrollY += y;
};