Is there a command where you can jump to a location instead of using scrollTo().
I’m getting the user to filter a collection with some dropdown menus and a repeater. If they have scrolled halfway down the items in the repeater, I bring them back to the start of the new filter selection by using $w ( “Page” ). scrollTo (). However, this can sometimes several seconds to scroll up all the items. It would be great if there was a command where it would immediately take you to the top of the page.
Any help greatly appreciated
import wixWindow from 'wix-window';
//whenever you wish to scroll to the top run the following line:
wixWindow.scrollTo(0, 0, {scrollAnimation: false})
Thanks Velo Master for the tip. I’m already able to do that by using $w ( “Page” ). scrollTo (). If possible what I would like to do, is to be able to jump directly to the top, without scrolling.