Skip to content

Ctrl+click in terminal doesn't register if the mouse is moved while clicking #41994

@kocsis1david

Description

@kocsis1david

Description

If the mouse is moved while ctrl+clicking in the terminal on a link, it doesn't register as a click. (Does Zed detects subpixel mouse movement?)

Steps to reproduce:

  1. In the terminal run cargo run
  2. There is a panic, so the stack trace is shown
  3. Click on the file links in the stack trace

Expected Behavior:

Ctrl+click registers regardless of mouse movement. Browsers detect click if the mouse down event is on the same element as the mouse up event. I would expect something similar in Zed terminal. VSCode also detects click even if the mouse is moved, as long as the mouse button release happens on the same link.

Actual Behavior:

Sometimes it takes 3-4 clicks before Zed registers the click, I have to be extra careful not to move the mouse while clicking.

Zed Version and System Specs

Zed: v0.210.4 (Zed)
OS: Linux Wayland arch unknown
Memory: 15.3 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 25.2.6-arch1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    terminalFeedback for terminal integration, shell commands, etc

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions