Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
sumimasenga

When calling Draggable.enable() it stops throw animation

Recommended Posts

Hi!

 

I have noticed that if I have a draggable element with throwProps:true and throwing it will stop animate if I call the enable() function while the throw animation is still active. What im trying to do is that I have nested draggables that needs to call disable and enable at a specific time and dont want to break the animation if its still going.

 

I looked at the Draggable.js source code and in line 1718 does the animation to stop.

TweenLite.set(target, {x:"+=0"}); //simply ensures that there's a _gsTransform on the element.

I wanted to let you now what I found and maybe its better that you guys does the change in source code if you think this is something to change. The disable() function works as i should.

 

Thanks!

Link to post
Share on other sites

Thanks for pointing that out. I hadn't considered a case when you've got the target animating when you call enable(). Adding overwrite:false should solve the issue. I'll add that and it'll be in the next release (likely in the next day or two). 

  • Like 3
Link to post
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.

×