Mac: End move loop if left mouse is not down
We've had longstanding issues with interrupted tab drags not cancelling the move loop, often causing a crash when the loop is ended belatedly. A recent repro (issue 1119714) theorizes that a NSLeftMouseUp event is not reaching the move loop. Another repro case from a while ago (right clicking the tab while dragging) had a similar proximate cause. This change causes the move loop to also look at mouse moves while it's active. If it receives one (and the left mouse button is not down), it assumes we missed a mouse up and terminates the loop. (As a side note, with this change, I can no longer repro the behavior in 119714 where a single full-screen tab drag can flakily unfullscreen the tab. I'm thinking this behavior itself was due to move loop shenanigans.) Bug: 1119714,1030987 Change-Id: Idd4c765e1abfc87099fa6be82ae2e22f8dc9c55e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2368172 Commit-Queue: Leonard Grey <lgrey@chromium.org> Reviewed-by:Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#801003}
Showing
Please register or sign in to comment