user1219278
user1219278

Reputation: 1909

Equivalent of Window.scrollTo() without animation?

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

Answers (1)

Aatish Molasi
Aatish Molasi

Reputation: 2186

Could'nt you just use anchor tags .. ? you could set the document.location to that anchor (#top)

Upvotes: 1

Related Questions