Reputation: 2232
When working with jQuery sortable, draggable and dropable.
The container in which we are dropping any object, only accepts it if the center position of that object lies in the bounderies of container.
Sorry the above statement is too much complex please see below picture.
How can we change the point of acceptance?
Upvotes: 4
Views: 629
Reputation: 263137
You can use the tolerance
option (droppable, sortable).
droppable()
supports fit
, intersect
, pointer
and touch
.
sortable()
only supports intersect
and pointer
.
intersect
is the default for both widgets.
Upvotes: 4