Commit 05f88d3
authored
fix(terminal): prevent cursor movement on double-click selection (manaflow-ai#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 manaflow-ai#1698
Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com>1 parent 3efd947 commit 05f88d3
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