BenjaminO Posted July 19, 2022 Share Posted July 19, 2022 Hello folks 👋, I created a mouse follower with gsap.quickTo() method (https://greensock.com/docs/v3/GSAP/gsap.quickTo()) but when scrolling down, the mouse bubble offset. In order to compensate it, I thought that binding it to the bounds of my scrollSmoother wrapper would do the job. However, I wasn't able to reproduce my problem on the codepen I attached. Do you have some suggestions for me ? I saw tis topic but I didn't understood all part of the code : Thank you in advance for your help ! 🙏 Benjamin See the Pen gOemgYN by benjamOD2 (@benjamOD2) on CodePen Link to comment Share on other sites More sharing options...
Solution GreenSock Posted July 19, 2022 Solution Share Posted July 19, 2022 I'm not sure I understand your question, but maybe just use .pageX/pageY instead of .clientX/clientY (?) 1 Link to comment Share on other sites More sharing options...
BenjaminO Posted July 19, 2022 Author Share Posted July 19, 2022 Hello @GreenSock ! Indeed it solved my problem ! Thank you for your answer, I didn't thought about that 😅 Many thanks again 🙏 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