Search and Top Navigation
#8039 closed bug (duplicate)
Opened January 20, 2012 02:58PM UTC
Closed November 08, 2012 03:54AM UTC
Sortable: Unable to drag item from one sortable with vertical scroll to other with vertical scroll
Reported by: | alecs | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.sortable | Version: | 1.8.17 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Here is my fiddle : http://jsfiddle.net/alecs/NFy3y/
Sometimes it's not possible to drag items from one scrollable div to other div.
Scroll down the left bar(to the lowest part of container) and try to drag item from the right bar to the left. Though when the left scroll is in the top position you are able to drag items to it.
Attachments (0)
Change History (4)
Changed January 22, 2012 07:33PM UTC by comment:1
Changed October 11, 2012 02:55PM UTC by comment:2
milestone: | 1.9.0 → 2.0.0 |
---|
Changed November 04, 2012 09:57PM UTC by comment:3
status: | new → open |
---|---|
summary: | Unable to drag item from one sortable with vertical scroll to other with vertical scroll → Sortable: Unable to drag item from one sortable with vertical scroll to other with vertical scroll |
_intersectsWith returns false in this situation when the item is in the container. In the method there are negative values for the top and bottom of the item, and the logic to determine isOverElement appears to be expecting positive values. So I'm assuming that's a problem.
I found that if I comment out this check in refreshPositions everything works:
So it appears to be related to the position not being recalculated when it should be.