Skip to content

snapOnInput and repositionCursorWithMouse together makes clicking anywhere scroll to bottom #19181

@ThioJoe

Description

@ThioJoe

Windows Terminal version

1.22.11751.0

Windows build number

10.0.26100.4652

Other Software

Any app with "continuous" console output apparently. Where it's not prompting for user input.

Example: ping.exe

Steps to reproduce

Example with ping

  1. Set snapOnInput and repositionCursorWithMouse both true, restart terminal.
  2. Run ping -t 127.0.0.1 and wait for it to reach the bottom so the window requires scrolling. Make the window smaller to do this faster.
  3. Scroll up anywhere, then try to select text with the left mouse click. It will instantly scroll to the bottom.

Screencap

An observation: It doesn't scroll down if trying to select the "path" part before the prompt for some reason. Only anything starting after the prompt on the first line. See what i mean in the video.

Also note that the scrolling is not a result of the ping output, it's only when clicking. Not sure how clear that is in the video.

20250727-2304-25.3655437.mp4

Expected Behavior

It lets me select text without scrolling to the bottom.

Actual Behavior

When terminal is displaying the output of apps with "continuous" output (not sure what to call it), if snapOnInput and repositionCursorWithMouse are both true, if you scroll up and try to select anything by left clicking, it instantly scrolls to the bottom.

Another example during an SSH session (screencap below), it also plays an error sound (no audio in the video though). This the error sound doesn't occur with all apps, just ssh as far as I've seen. I should point out that if snapOnInput is false, but repositionCursorWithMouse is true, terminal will still play the error sound, but at least it doesn't scroll to the bottom.

20250727-2238-58.5219230.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InputRelated to input processing (key presses, mouse, etc.)Help WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-3A description (P3)Product-TerminalThe new Windows Terminal.

    Type

    Projects

    Status

    To Cherry Pick

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions