Share Posted March 16 I noticed that when moving a draggable object, it uses a transformation matrix to "move" the element. Is there a way to get draggable (when a drag is complete for example), to take the matrix transformation values, and apply that back to the x,y of the element, and then remove the transformation? Basically I want the element to no longer be transformed once the drag is done, but actually change it's x,y to be the new position. I thought maybe update() would do that, but it appears it doesn't. The reason I want this is because I want the "new location" of the dragged element, but I don't want to have to deal with deciphering the matrix values. I did try to (on the end drag event), to pull the matrix values, apply them to the original x,y values, and then remove the matrix, which works (sort of), until the element is dragged again, then Draggable still has the last matrix values and uses them at the start of the new drag. Basically, what I am looking for is the actual element to be moved to the final location, rather then having the original x,y values used with a transformation. Maybe I am just missing something. Thanks! Paul Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now