Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Sortable chomps events of contained items

#382

I'm currently building a little layer system (a stack basically). The idea is that the user should be able to modify the ordering of the layers using drag and drop. I thought Sortable plugin might just be the thing for this. I came upon a problem, though.

The thing is that each of those layers contains some functionality (ie. hide/show, select). Using sortable on the stack makes it possible to reorder it. After enabling Sortable I cannot access the functionality of the layers anymore, however. It seems Sortable overrides the events defined for each layer.

I guess like in the case of Draggable providing a handle element for sorting just might do the trick. Or if it's possible to do without, that would be even better. :)

Reported by Juho Vepsäläinen · October 16th, 2010 @ 05:57 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit

    I'm not sure I follow, could you drop me some examples?

    October 17th, 2010 @ 11:50 AM

  2. Juho Vepsäläinen
    Juho Vepsäläinen

    Sure. Here's a minimal example to see what I'm after, http://gist.github.com/630656 .

    October 17th, 2010 @ 12:19 PM

  3. MadRabbit
    MadRabbit
    • State changed from new to resolved

    Here you go!

    http://rightjs.org/ui/sortable/demo#custom

    there are couple of new options for that
    http://rightjs.org/ui/sortable#options

    and couple of new events to handle as well
    http://rightjs.org/ui/sortable#options

    October 17th, 2010 @ 05:04 PM

  4. Juho Vepsäläinen

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.