debian-mirror-gitlab/spec/frontend/helpers/dom_shims/scroll_by.js
2020-04-08 14:13:33 +05:30

7 lines
120 B
JavaScript

window.scrollX = 0;
window.scrollY = 0;
window.scrollBy = (x, y) => {
window.scrollX += x;
window.scrollY += y;
};