Skip to main content

Search and Top Navigation

#8573 closed bug (fixed)

Opened September 13, 2012 03:33AM UTC

Closed October 10, 2012 06:57PM UTC

Can't drag an item out of an inner sortable

Reported by: zhizhangchen Owned by:
Priority: minor Milestone: 1.9.1
Component: ui.sortable Version: 1.8.23
Keywords: Cc:
Blocked by: Blocking:
Description

Example: http://jsfiddle.net/6bsGx/3/

1. Click near the bottom of an item and move downwards, notice that the item can't be dragged out of the inner sortable

2. Click near the top of an item and move upward, notice that the item can't be dragged out of the inner sortable

Attachments (0)
Change History (2)

Changed October 10, 2012 06:55PM UTC by scottgonzalez comment:1

milestone: 1.9.01.9.1
version: git1.8.23

Changed October 10, 2012 06:57PM UTC by John Chen comment:2

resolution: → fixed
status: newclosed

Sortable: Calculating item distance and direction using a more robust algorithm to better support sorting among nested sortables. Fixes #8572 - Wrong placeholder positions. Fixes #8573 - Can't drag an item out of an inner sortable. Fixes #8574 - Hard to put an item between two inner sortables.

Use the item which has the least distance between the mouse

pointer and one of its borders to rearrange, with direction being

determined by the nearest border.

Also we use this algorithm to rearrange even when currentContainer

is not changed to override the defective rearrangment in

_mouseDrag

Changeset: bae06d2b1ef6bbc946dce9fae91f68cc41abccda