4

When working with jQuery sortable, draggable and dropable.

  1. Dropping a sortable item in sortable.
  2. Dropping a draggable in a droppable.

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?

enter image description here

Imran Naqvi
  • 2,202
  • 5
  • 26
  • 53

1 Answers1

4

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.

Frédéric Hamidi
  • 258,201
  • 41
  • 486
  • 479
  • + 1, Thanks @Hamidi for your response. After reading the options i am pretty confident that this is my answer. I will update after i test it. – Imran Naqvi Jul 30 '11 at 18:09