Opened 10 years ago
Closed 10 years ago
#8572 closed bug (fixed)
Wrong placeholder positions
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/Zvvpt/15/
- drag the first item and move slowly down, when getting to the bottom of the sortable, the placeholder moves to the top of the sortable
- drag the second item and move slowly down, the placeholder doesn't move until the item is dragged out of the sortable, where the placeholder jumps quickly to the bottom of the sortable and then goes to the middle again
Change History (2)
comment:1 Changed 10 years ago by
Milestone: | 1.9.0 → 1.9.1 |
---|---|
Version: | git → 1.8.23 |
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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