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 comment:1
status: | new → open |
---|---|
summary: | _intersectsWithPointer in sortable.js does not work for horizontal moves → Sortable: _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.