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
you can use window.scroll() instead. tested in jsfiddle , worked. usage same window.scrollto().
for example: window.scroll(0, 485);
Comments
Post a Comment