Jump to content
Search Community

draggable - return to original position

loll test
Moderator Tag

Recommended Posts

I am new to Greensock. 

 

I am using draggable to drag items around the screen

 

im using hit test to determine if the item drops in a place that is allowed.

 

When its not in a place that is allowed, I am wanting the object to return to where it came from 

 

using "onPress" I am getting the original x and y but im not sure how to move it back there. 

 

how is it best to ping the div back to the original place it came from?

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