Vencoca Posted June 17, 2023 Share Posted June 17, 2023 Hello, I'm workin on project with Smoothscroll and I stumbled upon issue on mobile. When I scroll down and the adress bar hides it recalculates elements with data-speed and they jump. This happens only when I release finger, if I hold the screen it doesnt do that recalculation. So my question is - Is there a way how to stop this recalculation without using normalize scroll (this solves the issue), because I would like the adress bar to hide? I put down example on stackblitz https://js-dnfvls.stackblitz.io/ as well since in codepen I couldnt figure out the way how to run it on mobile without iframe, so it will reproduce the issue im having. Thanks in advance Vencoca See the Pen xxQVjjB by Vencoca (@Vencoca) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted June 18, 2023 Solution Share Posted June 18, 2023 Try this: ScrollTrigger.config({ ignoreMobileResize: true }); Better? Link to comment Share on other sites More sharing options...
Vencoca Posted June 18, 2023 Author Share Posted June 18, 2023 Thank you, it worked as a charm. 🙏 I updated the codepen and blitz as well. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now