Opened 11 years ago
Last modified 7 years ago
#8342 reopened bug
Sortable: Incorrect behaviour (or incorrect documentation) of sortable option tolerance: 'intersect'
Reported by: | dioslaska | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.sortable | Version: | 1.8.20 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Here's what the docs sais about the tolerance option:
intersect: draggable overlaps the droppable at least 50%
But if the mouse pointer is not above the sortable items, the sort does not happen, no matter that the dragged element is at least 50% over another sortable item (the functionality I expect) This happens on the demo page as well, tested on all major browsers. It is even more annoying if the drag is restricted on one of the axis.
Here is an example:
Here is the expceted behaviour (sort should occur if the dragged element overlaps anouther sortable element, even if the mouse pointer is not over that element) with a workaround solution
Change History (11)
comment:1 Changed 10 years ago by
Milestone: | 1.9.0 → 2.0.0 |
---|
comment:2 Changed 10 years ago by
Status: | new → open |
---|---|
Summary: | Incorrect behaviour (or incorrect documentation) of sortable option tolerance: 'intersect' → Sortable: Incorrect behaviour (or incorrect documentation) of sortable option tolerance: 'intersect' |
comment:3 Changed 10 years ago by
comment:4 Changed 10 years ago by
Fixed in pull request https://github.com/jquery/jquery-ui/pull/915
comment:5 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | open → closed |
Duplicate of #8274.
This was already fixed in 1.8.20 for #8274. You can see that it works here: http://jsfiddle.net/tj_vantoll/tDGgM/. If you change the version from 1.8.20 --> 1.8.19 the bug appears.
comment:6 Changed 10 years ago by
This is working as expected when the sortable is constrained to an axis per #8274 but the problem still exists when no axis is specified http://jsfiddle.net/tj_vantoll/DdLjd/.
comment:7 Changed 10 years ago by
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
comment:9 Changed 10 years ago by
Updated versions in the test case: http://jsfiddle.net/tj_vantoll/QdcW7/
Per #9524 this also happens on the demo page: http://jqueryui.com/sortable/
Discussion on Stack Overflow - http://stackoverflow.com/questions/10637095/jquery-ui-sortable-tolerance-option-not-working-as-expected