Sortable: added checks for the helper touching the edge of the containme...#1060
Sortable: added checks for the helper touching the edge of the containme...#1060m-orchard wants to merge 6 commits intojquery:masterfrom m-orchard:master
Conversation
…nment while dragging. Fixed #5772 - Sortable: containment parent restricting replacement of first and last elements
|
Thanks for contributing! In order for us to review this patch, we'll need just a few more things:
Thanks again for contributing and let me know if you have any questions! |
Conflicts: ui/jquery.ui.sortable.js
…ile dragging. Fixed #5772 - Sortable: containment parent restricting replacement of first and last elements
…to first and last position
|
Sorry for the very, very slow response to this! I've updated my pull request with better formatting, added some tests, and signed the CLA. Please let me know if there's anything else that should be fixed. :) |
… Fixed #5772 Sortable: containment parent restricting replacement of first and last elements
|
Hi, |
|
@scottgonzalez do you know why this PR stalled? It was made by a colleague of mine. Is it worth me bringing it up to date with master? |
|
Yes, this is worth bringing up to date with master. Thanks again! Typically, a PR is stalled because it's made against a widget that is currently undergoing a rewrite or expected to be rewritten soon, or we respond and it takes a while for the patch author to respond to our comments. Some things just get lost in the shuffle. Please update this and then ping me and I'll look into getting it merged! Thanks again |
|
moved to #1424 |
...nt while dragging. Fixed #5772 - Sortable: containment parent restricting replacement of first and last elements
This issue can be reproduced based on where the mouse is positioned when sorting - in the patched versions you can drag from anywhere in the item to trigger a rearrangement, where as in the unpatched versions you must drag such that the initial mouse down position inside the item will overlap with the target item.
Example fiddles:
Horizontal
Horizontal Patched
Vertical
Vertical Patched
2D
2D Patched
There is also an existing issue where the vertical container will be pushed down when sorting into the last index, which is not fixed in this pull request.