Ticket #8574 (closed bug: fixed)
Hard to put an item between two inner sortables
| Reported by: | zhizhangchen | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.1 |
| Component: | ui.sortable | Version: | 1.8.23 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Example: http://jsfiddle.net/k4nn3/3/ Drag an item down, notice that it's hard to put the item between the two inner sortables. If you clicked the top of an item and drag it down , it can be put between the inner sortables, but you can never make it there when moving upwards.
Change History
comment:1 Changed 7 months ago by scott.gonzalez
- Version changed from git to 1.8.23
- Milestone changed from 1.9.0 to 1.9.1
comment:2 Changed 7 months ago by John Chen
- Status changed from new to closed
- Resolution set to fixed
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

