fb-nyc Posted March 27, 2020 Share Posted March 27, 2020 I couldn't replicate this issue on codepen, so for now, I'm hoping that there is something obvious that I'm missing in regards to Draggable settings. I have a Draggable container that scrolls its inner object perfectly when the window scrollY position is 0. But when the browser scrolls down and the window scrollY property is more than 0, the Draggable object (onDrag) jumps up to the window scrollY 0 position instead of maintaining its relative position inside of the Draggable container. Do I need to reset the y position so that the scrolling object maintains its relative position within the Draggable container instead of the window scrollY position? Thanks, Frank Link to comment Share on other sites More sharing options...
GreenSock Posted March 27, 2020 Share Posted March 27, 2020 Hm, I wonder if you just have an old version of Draggable. I know at one point there was a bug that sounds kinda like what you're describing, but it was fixed a few releases back. Please make sure you've got the latest version (3.2.6) and let us know if that resolves things. If not, it's gonna be really tough to troubleshoot blind so if you could send us some kind of reduced test case we'd love to take a peek. 👍 1 Link to comment Share on other sites More sharing options...
fb-nyc Posted March 27, 2020 Author Share Posted March 27, 2020 (edited) I just added the latest version, but the issue is still there. Below is a test link: https://ms85.holdrr.com/timeline/era-1 The dragger is exposed in the console. **I just realized that I only updated gsap-bonus.tgz but I did not update using npm install, so I was still using 3.0.1! Everything is fine using 3.2.6! Thanks! Frank Edited March 27, 2020 by fb-nyc 1 Link to comment Share on other sites More sharing options...
GreenSock Posted March 27, 2020 Share Posted March 27, 2020 Yay! Thanks for letting us know that it's resolved now. Sorry about any confusion there. Happy tweening (and dragging)! 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