Jump to content
Search Community

Draggable sync fails

potatoDie
Moderator Tag

Go to solution Solved by Diaco,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Posted

Hello GreenSocks,

 

I cannot get syncing / resetting a draggable to work. Please, see my pen.

 

The red dot is a (Draggable) slider. When user changes number of control points, I remove the transform on the target and call Draggable.update(). But unfortunately, the x property remains the same.

 

Would be great if you could have a look at it!

 

Roelof

potatoDie

See the Pen WbOWGY by potatoDie (@potatoDie) on CodePen.

Posted

Thank you Diaco for the prompt reply. Sorry for the overload of context.

 

Well, you solved it! Great :) I never thought of using TweenMax, since I wasn't tweening. I'll need to have a closer look on what TweenMax actually is.

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...