gitlab-org--gitlab-foss/spec/frontend/helpers/dom_shims/scroll_by.js

7 lines
120 B
JavaScript

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