-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Working set drag stop when moving mouse quickly #4920
Comments
To me since I think I see where the bug is... |
I've been noticing this too. It is because of the recently added mouseleave event. Since you are moving the mouse quickly, you end up leaving the element and triggering this event, which drops the item. |
Just ran into this again. Looks like this didn't have a priority...marking low. |
Seems like the fix should be to use a capture handler on the move events (so it works even if you happen to drag slightly outside the container), and not paying attention to mouseleave (which shouldn't matter - we should only care when you actually let go of the mouse, I think). |
I did some debugging and found the issue, which is actually a race condition.
Issue #5999 is different from this one, since there is actually a mouseleave listener that drops the item when moving the mouse outside of the working set container. It looks like it was a suggestion by redmunds 2years ago: #1846 (comment) |
@njx @peterflynn Is this marked as |
Not sure - I don't remember if I marked it for some reason, but I don't think so. Anyway, if no one else chimes in, please go ahead - it's been bugging me :) |
Ok. I think i have an easy fix for this issue and #5999. I should just test that it won't break anything. |
Closing -- fixed now that PR #7820 has landed |
Result:
Item moves up one notch, then stops moving. The item won't move any further until you mouseup.
Expected:
Works just as well as dragging slowly.
The text was updated successfully, but these errors were encountered: