Jump to content
Search Community

cesco

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by cesco

  1. thanks @Cassie

     

    Here a test:

    See the Pen bGrgELJ by cescocesco (@cescocesco) on CodePen

     

    If you pan to top yellow area, you can see red circles. If you select a group of this and drag it by the one with red border, after it select another group and drag it, after select this 2 groups and drag it, you can see the problem.

     

    Sorry but code is a little bit confusing because i test some solution.

    Seems kill or update don't work.

    • Like 1
  2. Hi

     

    when i drag an object , it sets own traslate3d value x,y,z. I set a function to translate it to left,top when dragend.

     

    Example:

     

    style="left:0px;top:0px;translate3d(10px,10px,0px)"

     

    become

     

    style="left:10px;top:10px"

     

    It works but when i click again on same object translate3d settings reappear. I try to kill or update but nothing change. Is there a possibiliy to completely reset draggable on object?

     

    Thanks

     

     

     

  3. Hi, i have some elements that i must drag on stage. I need to move multiple elements at same time, so i use Jquery ui selectable. When i select multiple elements i use "onDrag" events and copy transform translate3d css on all selected elements.

    I use Draggable.create inside "stop" event of Selectable.

     

    Everything works fine, but if i deselect and reselect same elements, the elements when i copy transform css, return to transform translate 0px 0px 0px.

     

    I try to kill or disable draggable after unselect elements but nothing change. Is it possible to reset draggable or destroy it ?

     

    Thanks

     

    Francesco

     

×
×
  • Create New...