Skip to main content

Search and Top Navigation

#8342 reopened bug ()

Opened May 22, 2012 09:48AM UTC

Last modified November 05, 2015 02:00PM UTC

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:

http://jsfiddle.net/8hjhV/3/

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

http://jsfiddle.net/8hjhV/2/

Attachments (0)
Change History (11)

Changed October 11, 2012 02:56PM UTC by scottgonzalez comment:1

milestone: 1.9.02.0.0

Changed November 04, 2012 09:38PM UTC by petersendidit comment:2

status: newopen
summary: Incorrect behaviour (or incorrect documentation) of sortable option tolerance: 'intersect'Sortable: Incorrect behaviour (or incorrect documentation) of sortable option tolerance: 'intersect'

Changed November 15, 2012 12:07AM UTC by rehe comment:3

Changed February 15, 2013 12:14PM UTC by nathanael comment:4

Changed March 18, 2013 01:55AM UTC by tj.vantoll comment:5

resolution: → duplicate
status: openclosed

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.

Changed March 18, 2013 10:57PM UTC by tj.vantoll comment:6

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/.

Changed March 18, 2013 10:58PM UTC by tj.vantoll comment:7

resolution: duplicate
status: closedreopened

Changed August 29, 2013 12:14PM UTC by tj.vantoll comment:8

#9524 is a duplicate of this ticket.

Changed August 29, 2013 12:16PM UTC by tj.vantoll comment:9

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/

Changed May 21, 2014 04:29PM UTC by tj.vantoll comment:10

#10048 is a duplicate of this ticket.

Changed November 05, 2015 02:00PM UTC by scottgonzalez comment:11

#14778 is a duplicate of this ticket.