I have a div that is droppable and immediately below it a list that is
sortable. If I drag a list-item from the list and drop it into the
droppable div, the list still 'thinks' I am sorting it to the top of
the list, even if the pointer is not within the list (I am using a
tolerance of 'pointer'). As a result, my drop event gets called
followed by the update event and the list item is placed at the top of
the sortable list, which I don't want.
Here is my setup code:
$('.sortcontainer').sortable({
axis: 'y',
connectWith: ['.sortcontainer'],
opacity: 0.5,
tolerance: 'pointer',
placeholder:'placeholder',
start: sortStart,
stop: sortStop,
out: sortOut,
over: sortOver,
update: sortUpdate
});
$('.dropobject).droppable({
accept: '.sortcontainerobj',
hoverClass: 'drophover',
//drop: dropItem,
start: sortStart,
stop: sortStop,
out: sortOut,
over: sortOver,
update: sortUpdate
});
Thanks for any help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---