Configuring drop tolerance
Drop tolerance refers to the way a droppable detects whether a drag object is over it or not. The default value is intersect
. The following table lists the modes that this option may be configured with:
Mode |
Implementation |
---|---|
|
The drag object must be completely within the boundary of the droppable for it to be considered over it. |
|
At least 25 percent of the drag object must be within the boundary of the droppable before it is considered over it. |
|
The mouse pointer must touch the droppable boundary before the drag object is considered over the droppable. |
|
The drag object is over the droppable as soon as an edge of the drag object touches an edge of the droppable. |
So far, all of our droppable examples have used intersect, which is the default value of the tolerance
option. Let's see what difference the other values for this option make to an implementation of the component. Revert to the #drag
and #target
IDs from their respective...