jbonlinea Posted October 7, 2020 Share Posted October 7, 2020 Hi there, I've been adding drag functionality to a pen we've been busy with recently. Broadly speaking it works but the draggable element jumps on first after the animation, only if a bounds is defined ?! To reproduce the issue Dragg the small div --> all is fine, Click on swich pip order --> click and hod on the "new" small div, like if you were planing to drag it, but don't drag it==> you'll see a transform is applied, the small div jumps some pixels toward the right and the bottom ; Note that this jumps only occurs when dragging after the animation; once you have dragged the element once it won't jump anymore until you run the animation If you remove the bounds line 45, the element do not jump anyore... ?! thank's for your attention See the Pen MWyqrML?editors=1010 by jbonlinea (@jbonlinea) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted October 7, 2020 Share Posted October 7, 2020 Looks like that was already fixed in the upcoming Draggable which you can preview at https://assets.codepen.io/16327/Draggable3.min.js 2 Link to comment Share on other sites More sharing options...
jbonlinea Posted October 7, 2020 Author Share Posted October 7, 2020 2 hours ago, GreenSock said: Looks like that was already fixed in the upcoming Draggable which you can preview at https://assets.codepen.io/16327/Draggable3.min.js Indeed, excellent ! thank's 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