Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I prevent multiple jQuery UI droppables from being triggered?
    primarykey
    data
    text
    <p>I have a <a href="http://jqueryui.com/demos/draggable/" rel="noreferrer">jQuery UI draggable</a> and several separately-defined <a href="http://jqueryui.com/demos/droppable/" rel="noreferrer">droppables</a>. Because one of the droppables is configured <code>tolerance: 'intersect'</code>, it's possible for a draggable to be dropped on more than one kind of droppable at the same time.</p> <p>What's the best way to prevent the unintended droppables from firing? Basically, I'd like to prioritize the droppables so that the droppables with <code>tolerance: 'intersect'</code> don't get triggered if another droppable was triggered.</p> <p><strong>Update</strong> - More info to clarify things:</p> <ul> <li><p>All of the droppables are configured <code>tolerance: 'pointer'</code> except for one class of droppable with <code>tolerance: 'intersect'</code>.</p></li> <li><p>The reason one class of droppable has <code>tolerance: 'intersect'</code> is that the droppables are really narrow, and users have problems finding them with <code>tolerance: 'pointer'</code>.</p></li> <li><p>Moving the droppables further apart isn't an option.</p></li> <li><p>None of the droppables overlap, but the draggable is large enough to overlap a droppable with <code>tolerance: 'intersect'</code> while the mouse pointer is over another droppable with <code>tolerance: 'pointer'</code>. At most two droppables can be triggered at once in this way.</p></li> <li><p>The UI is laid out so the user's intentions can be determined by ignoring the <code>tolerance: 'intersect'</code> droppable if another droppable has been triggered; i.e. if the user moved the mouse pointer over a droppable with <code>tolerance: 'pointer'</code>, it's safe to assume that he/she intended to drop it there. Problem is, I can't figure out how to ignore the unwanted droppable.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload