开发者

jQuery UI : sortable and draggable behaviour while dropping object

开发者 https://www.devze.com 2023-03-24 04:28 出处:网络
When working with jQuery sortable, draggable and dropable. Dropping a sortable item in sortable. Dropping a draggable in a droppable.

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 accep开发者_如何学Gotance?

jQuery UI : sortable and draggable behaviour while dropping object


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消