Files
oak-gpui/crates
Martim Aires de SousaandBen Kunkle 21cf2e38c5 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>
2025-03-12 13:32:42 -05:00
..
2025-03-06 05:20:06 +00:00
2025-02-28 18:33:35 +01:00
2025-03-06 10:56:28 -07:00
2025-03-12 07:25:19 +00:00
2025-01-27 13:40:59 -05:00
2025-03-12 07:25:19 +00:00
2025-03-10 13:38:30 -06:00
2025-03-12 07:25:19 +00:00
2025-02-28 18:33:35 +01:00
2025-02-28 18:33:35 +01:00
2025-03-10 13:38:30 -06:00
2025-03-11 21:39:29 +00:00
2025-03-10 13:19:02 -07:00
2025-03-12 07:25:19 +00:00
2025-03-10 13:38:30 -06:00
2025-02-28 18:33:35 +01:00
2025-03-06 10:56:28 -07:00
2025-03-10 13:19:02 -07:00
2025-03-12 12:53:37 -04:00
2025-03-10 13:38:30 -06:00