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

8 lines
120 B
JavaScript
Raw Normal View History

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