8 lines
120 B
JavaScript
8 lines
120 B
JavaScript
|
window.scrollX = 0;
|
||
|
window.scrollY = 0;
|
||
|
|
||
|
window.scrollBy = (x, y) => {
|
||
|
window.scrollX += x;
|
||
|
window.scrollY += y;
|
||
|
};
|