Skip to main content

Search and Top Navigation

#9696 open bug ()

Opened December 06, 2013 07:14PM UTC

Last modified May 04, 2017 03:39PM UTC

Sortable: _intersectsWithPointer does not work for horizontal moves

Reported by: zengxinzhy Owned by:
Priority: minor Milestone: none
Component: ui.sortable Version: 1.10.3
Keywords: Cc:
Blocked by: Blocking:
Description

Enviroment:

Windows 7, Chrome Version 31.0.1650.63 m

Discription:

Just use the sample demo: http://jqueryui.com/sortable/

Drag one item, and move horizontally over other item, the placeholder does not update unless you make a tiny vertical mouse move.

It seems that in line 570 of sortable.js in https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.sortable.js

we should use:

: ( (verticalDirection && verticalDirection === "down") ? 2 : 1 );

rather than

: ( verticalDirection && (verticalDirection === "down" ? 2 : 1) );

Attachments (0)
Change History (3)

Changed December 09, 2013 01:58PM UTC by tj.vantoll comment:1

status: newopen
summary: _intersectsWithPointer in sortable.js does not work for horizontal movesSortable: _intersectsWithPointer does not work for horizontal moves

Thanks zengxinzhy. I would've swore this issue has come up before but I can't seem to find a duplicate out there so I'm marking this as valid.

Changed May 04, 2017 03:38PM UTC by scottgonzalez comment:2

#13880 is a duplicate of this ticket.

Changed May 04, 2017 03:39PM UTC by scottgonzalez comment:3

#15086 is a duplicate of this ticket.