SIGN IN SIGN UP

Fix pane magnification causing mouse to drag tabs unexpectedly (#26383)

Previously, if a user clicked a button and moved the cursor out before
releasing, the click event was correctly prevented, but the pending
mouse-down state remained.
This caused unintended drags when the UI shifted due to magnification
settings.

Now, mouse-up clears the pending state:
- If over the button → clear state and trigger click handlers.
- If outside the button → clear state without triggering a click.

This avoids accidental drags while preserving expected click behavior.

Closes #24600

Release Notes:

- N/A

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
M
Martim Aires de Sousa committed
21cf2e38c54873b854ec19279062c3c3dccb451e
Parent: a3ca555
Committed by GitHub <noreply@github.com> on 3/12/2025, 6:32:42 PM