Opened 9 years ago

Last modified 6 years ago

#9696 open bug

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) );

Change History (3)

comment:1 Changed 9 years ago by tj.vantoll

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.

comment:2 Changed 6 years ago by Scott González

#13880 is a duplicate of this ticket.

comment:3 Changed 6 years ago by Scott González

#15086 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.