Commit 59f526a
authored
fix(terminal): prevent cursor movement on double-click selection (#1709)
Double-clicking to select text in the terminal was causing unwanted cursor
movement because the mouse position was being updated on both the first and
second clicks. This disrupted the selection gesture and caused the cursor to
jump to a different position than intended.
Fix by only updating the mouse position on the first click (clickCount == 1),
allowing the terminal's selection logic to handle multi-click gestures without
cursor interference.
Fixes #1698
Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com>1 parent da1bfed commit 59f526a
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5868 | 5868 | | |
5869 | 5869 | | |
5870 | 5870 | | |
5871 | | - | |
| 5871 | + | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
5872 | 5876 | | |
5873 | 5877 | | |
5874 | 5878 | | |
| |||
0 commit comments