Search and Top Navigation
#15170 closed bug (fixed)
Opened April 18, 2017 02:13AM UTC
Closed May 02, 2017 06:03PM UTC
Last modified May 02, 2017 07:09PM UTC
Helper/Item Intersection checking should not occur if the helper is not inside of a container
Reported by: | borgboyone | Owned by: | scottgonzalez |
---|---|---|---|
Priority: | minor | Milestone: | 1.12.2 |
Component: | ui.sortable | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It appears that the code that kicks off helper and item intersection checking engages even when the helper is outside of a container. Performance would be improved if the container intersection check is performed first in the _mouseDrag function and the currentContainer variable (potentially innermostContainer as well) is immediately set to null if no intersection is found. Scrolling and rearrangement of the placeholder via item loop can then be bypassed accordingly.
In [changeset:"c866e455373028a62a0956455a229fef63e91fac" c866e45]: