Don't use window.scrollTo( 0, 1 ), just don't.
-
Hi.
How to:
Open a long page in your administration area with Firefox (the browser is important), scroll down, reload the page.
As a result, the window jumps at the top of the page.Who:
The culprit: mp6/components/responsive/js/moby6.js, line 31:
window.scrollTo( 0, 1 );
Why:
The aim of this ugly thing is to remove the address bar on mobile browsers, but:
1- this is triggered on non-mobile browsers too.
2- mobile or not, the browser will scroll to top anyway, so this is a very bad thing to do (I guess it doesn’t happen with Chrome).
3- it doesn’t work with lots of mobile browsers (the address bar stay).Solution:
Simply remove this line, the perfect solution does not exists to do that (or I’m not aware of it).Greg
- The topic ‘Don't use window.scrollTo( 0, 1 ), just don't.’ is closed to new replies.