Jump to content
Search Community

Draggable.endDrag() with inertia on

Jean-Baptiste Janot test
Moderator Tag

Recommended Posts

Hi everyone,

 

Thanks again for the amazing tools, I am a long term user now and still amazed everyday by the gsap platform ♥️

 

I am trying to completely stop the dragging and tweens of a Draggable instance when clicking on a button in order to move the dragged item programmatically and prevent jumps.

I use the endDrag function, but when the draggable instance is configured to use inertia and snaps, it always complete the snap first no matter what.

How can I be sure that every tween is stopped when using endDrag(), even the inertia related ones?

 

I can create a codepen if it is not clear enough.

 

Thank you for your help.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...