Reputation: 1909
On the Window class, we have:
Window.getScrollTop();
and:
Window.scrollTo(0, 0);
Is there a way to set the scroll without animation? On ios, calling Window.scrollTo() does an animation. I'd like to just set the scroll without any animation.
Thanks
Upvotes: 1
Views: 1033
Reputation: 2186
Could'nt you just use anchor tags .. ? you could set the document.location to that anchor (#top)
Upvotes: 1