Open m93a opened 1 month ago
It is possible that my touchpad sends the mouseup event after a delay. However, in VSC I have no such problem.
It's extremely annoying when I want to click on an identifier and then Ctrl+Backpace to delete the beginning of it, but Zed yeets me into a different file and deletes the identifier's definition.
I am not able to reproduce this on my Linux machine, I attempted with a trackpad and mouse but with no luck.
Could you see if this still happens with a different input device (mouse, etc) for you? Do you have any keyboard / mouse remapping or tools configured which might be contributing? (e.g. something that maps "ctrl-click" to right click, etc)
I tried to use a wireless mouse and can confirm that with a mouse this only occurs if the sequence of events is: mouse down, key down, mouse up. (This sequence of events does not trigger Go To Definition in VSC; only key down, mouse down, mouse up does.) Therefore the behavior reported in OP is only reproducible on the touchpad.
I'm using elementary OS 7.1 (based on Ubuntu 22.04.3) and, apart from elementary OS itself, I'm unaware of any 3rd party software that might be causing this.
xinput
that might be relevant.
```
➜ ~ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ DELL0A7A:00 04F3:3147 Mouse id=9 [slave pointer (2)]
⎜ ↳ DELL0A7A:00 04F3:3147 Touchpad id=10 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=13 [slave pointer (2)]
...
➜ ~ xinput list-props 9
Device 'DELL0A7A:00 04F3:3147 Mouse':
Device Enabled (170): 1
Coordinate Transformation Matrix (172): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (309): 0
libinput Natural Scrolling Enabled Default (310): 0
libinput Scroll Methods Available (311): 0, 0, 1
libinput Scroll Method Enabled (312): 0, 0, 1
libinput Scroll Method Enabled Default (313): 0, 0, 1
libinput Button Scrolling Button (314): 3
libinput Button Scrolling Button Default (315): 3
libinput Button Scrolling Button Lock Enabled (316): 0
libinput Button Scrolling Button Lock Enabled Default (317): 0
libinput Accel Speed (318): 0.000000
libinput Accel Speed Default (319): 0.000000
libinput Accel Profiles Available (320): 1, 1
libinput Accel Profile Enabled (321): 1, 0
libinput Accel Profile Enabled Default (322): 1, 0
libinput Left Handed Enabled (323): 0
libinput Left Handed Enabled Default (324): 0
libinput Send Events Modes Available (294): 1, 0
libinput Send Events Mode Enabled (295): 0, 0
libinput Send Events Mode Enabled Default (296): 0, 0
Device Node (297): "/dev/input/event5"
Device Product ID (298): 1267, 12615
libinput Drag Lock Buttons (325):
Check for existing issues
Describe the bug / provide steps to reproduce it
Environment
Zed: v0.147.2 (Zed) OS: Linux X11 elementary 7.1 Memory: 15 GiB Architecture: x86_64 GPU: AMD Unknown (RADV RENOIR) || radv || Mesa 23.2.1-1ubuntu3.1~22.04.2
If applicable, add mockups / screenshots to help explain present your vision of the feature
https://github.com/user-attachments/assets/e0b16e42-1dfc-49c0-ad58-48656fc694eb
If applicable, attach your Zed.log file to this issue.
Zed.log