locomotive-scroll
locomotive-scroll copied to clipboard
Viewport height change in Chrome Android makes elements jump.
Hello 👋 On chrome android, on the first scroll the URL bar gets hidden and it changes the viewport height calculated by locomotive making the elements jump on the first scroll. (Same when scrolling back, making the URL bar appear again).
Steps to reproduce the behavior:
- Open a site in Chrome android (eg: https://vdo8m.csb.app/)
- Scroll once for the URL bar to hide.
- Elements with
data-scroll
jumps. (in the case of example, the button jumps)
Video: https://youtu.be/HqDuJsfGiU4
- OS: Android 11
- Browser Chrome 91
Thank you 👊
Hello, any update?!
That's not really a browser-related issue. This happens in any browser, you should default to the native scroll on mobile responsive sizes (smooth: false).
But what if I want scroll based animations and smooth scroll in mobile?