Jump to content
Search Community

tarwin

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by tarwin

  1. Hi,

     

    Thanks for the amazing tool. I'm having some problems resetting the position of my Draggable object when I re-create it. In my example the second image doesn't show properly but that's fine.

     

    To replicate my problem simply drag the image a little, click the new link twice, and you will see that the image is where you left it. I'd expect it to reset position.

     

    Is there a way I can reset the position? I hope this is something with Draggable rather than being embarrassed by it being my crappy code.

     

    A second quick question. Is there a reason that you cannot set the "trigger" on any element and only on a child element? It would be useful if it was otherwise.

     

    Thanks,

    See the Pen eywrA by anon (@anon) on CodePen

  2. Is there a way to reset a Draggable to center? If I set the following CSS either before or after it causes problems such as when I first drag it jumps.

     

     'transform': 'translate3d(0px,0px,0px)'

×
×
  • Create New...