Files
ghostty/src
Mitchell Hashimoto 6d3f97ec1e Mouse drag while clicked should cancel any mouse link actions
Fixes #7077

This follows pretty standard behavior across native or popular applications
on both platforms macOS and Linux. The basic behavior is that if you
do a mouse down event and then drag the mouse beyond the current
character, then any mouse up actions are canceled (beyond emiting the
event itself).

This fixes a specific scenario where you could do the following:

  1. Click anywhere (mouse down)
  2. Drag over a valid link
  3. Press command/control (to activate the link)
  4. Release the mouse button (mouse up)
  5. The link is triggered

Now, step 3 and step 5 do not happen. Links are not even highlighted in
this scenario. This matches iTerm2 on macOS which has a similar
command-to-activate-links behavior.
2025-04-13 14:56:40 -07:00
..
2024-03-26 16:14:25 -07:00
2025-03-26 23:29:15 -05:00
2025-03-12 09:55:52 -07:00
2025-03-12 10:04:17 -07:00
2025-03-12 10:15:14 -07:00
2025-01-18 22:47:18 +09:00
2025-03-12 10:04:17 -07:00
2025-03-12 09:55:52 -07:00
2025-02-11 16:43:50 -08:00
2024-09-26 22:00:11 -07:00
2025-03-11 14:39:04 -07:00
2024-10-18 08:11:11 -07:00
2025-03-12 09:55:52 -07:00
2025-03-11 14:53:30 -07:00
2025-03-07 13:42:00 -08:00
2024-08-16 14:35:10 -07:00
2022-08-18 11:42:32 -07:00
2025-03-12 16:29:17 -07:00
2025-03-12 11:29:13 -07:00
2025-03-12 09:55:52 -07:00
2024-08-16 10:36:10 -07:00