Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: droppable handler ordering
08-28-2009, 08:18 PM #1
- Join Date
- May 2007
- Manteca, CA
- Thanked 0 Times in 0 Posts
droppable handler ordering
I've come across a bunch of blogs talking about the issue of droppable handlers being called in the order they were registered as droppables, as opposed to, say, zIndex order. Evidentally the same problem arrises in other frameworks besides JQuery.
My current plan is to, have each draggable handler to simply add a reference to itself to a list. When the drag is done (draggable's stop function is called), it will walk through the list of draggable's that were summoned in that drag, and pick out the desired one to perform the necessary action on (highest zIndex or whatever).
Does anybody have a simpler and/or more elegant solution?