You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to change the threshold of when two items should swap places?
In the image below "2" is being dragged upwards towards "b". I'd like "b" and "2" to swap places only once "2" completely (or almost completely) covers "b" vertically (instead of when it covers for example 50% which is what I believe it is now).
Is this possible to accomplish?
The text was updated successfully, but these errors were encountered:
I believe swapping is based not on coverage but on the mouse position and its distance to elements - the element which is closest to the current mouse position wins and is swapped with the dragged element. The distance is usually measured to the center of the element.
Thanks for your effort with this library!
Is it possible to change the threshold of when two items should swap places?
In the image below "2" is being dragged upwards towards "b". I'd like "b" and "2" to swap places only once "2" completely (or almost completely) covers "b" vertically (instead of when it covers for example 50% which is what I believe it is now).
Is this possible to accomplish?
The text was updated successfully, but these errors were encountered: