javascript - window.scrollTo not working in iOS chrome -


we using javascript code scroll div given id. tried use

jquery.animate({scrolltop: number})  window.scrollto(0, number)   settimeout(function() {window.scrollto(0, number);}, 1000) 

i tried add #element_id url scroll element_id.

none of these options working. there way work?

ios: 9.2.1

chrome: 48.0.2564.87

http://jsfiddle.net/fxx6c/114/

you can use window.scroll() instead. tested in jsfiddle , worked. usage same window.scrollto().

for example: window.scroll(0, 485);

this answer might explain why window.scrollto doesn't work


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -