Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Draggable: move away elements blew dragged up or down

    Like in a drag n drop page builder, when you are dragging an element to put it in 'canvas' it shows you a marker where the element dragged would be inserted if you dropped it now. But also, after dropping, the elements before or after are moved away in the document..

    How can accomplish both effects?


    ps: preferably without using ui sortable.

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,969
    Thanks
    56
    Thanked 557 Times in 554 Posts
    so, basically you want to do exactly what ui sortable does without using ui sortable, and you want somebody else to do it for you (I am guessing - otherwise you would have posted your code so far...?)

    Not saying it can't be done, but can I ask why you don't want to use sortable?

  • #3
    New to the CF scene
    Join Date
    Feb 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No I dont want any one to do it form, I just want the idea/algorithm,,

    Should I keep reference of every object x,y and check for collisions ?

    For sortable, Im not sure it is flexible enough ..

  • #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,969
    Thanks
    56
    Thanked 557 Times in 554 Posts
    oo7Julien posted a non-jQuery sortable list here - maybe that's a start?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •