Scrolls a page by the specified number of pixels.
The x
and y
parameters determine the number of horizontal and vertical
pixels to scroll the current page. Negative numbers scroll up or to the
left and positive numbers scroll down or to the right.
function scrollBy(x: number, y: number): Promise<void>;
The horizontal offset, in pixels, to scroll by.
The vertical offset, in pixels, to scroll by.
import wixWindowFrontend from "wix-window-frontend";
// ...
wixWindowFrontend.scrollBy(100, 500);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.