-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MDL breaks the scrollTop attribute #1852
Comments
This is a problem coming from how layout is done. Nothing we can do. The 2.X redactor should handle this and numerous other problems. |
even one year later, scrollTop does not work, neither does the window.screenY property. My current workaround is recreating some of the styles with bootstrap while rebuilding the css from scratch |
Found this: https://stackoverflow.com/a/32037542/1280693 Worked for me. |
Instead of doing above do this Reference link : - https://stackoverflow.com/a/32037542/1280693 |
When using MDL, the scrollTop attribute of elements, e.g. the body, does not get updated and cannot be set. This breaks tools like Vimium that scroll the page for you.
You can test this on http://www.getmdl.io/started/. Scroll down the page a bit, open the console and enter
This will always return 0, even if you scrolled the body. If you try and enter that line on other pages, e.g. github, it will return a number indicating how far you have scrolled.
The same problem goes with setting the scrollTop attribute. It won't work on pages using MDL:
But will work on other pages.
The text was updated successfully, but these errors were encountered: