Jump to content
Search Community

PStemper

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by PStemper

  1. Let me look into this. I should be using the latest version. I just "found" the GreenSock stuff yesterday and just downloaded it then. Oh, and I should have mentioned my "elements" are actually svg elements, rects in fact.. Let me process what you mentioned above and see if this addresses what I am looking for. Thanks for your response!!! Paul
  2. 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
×
×
  • Create New...