Cannot release focus when scrolling #23377

Closed
opened 2026-01-31 08:40:32 +00:00 by claunia · 3 comments
Owner

Originally created by @zakarum on GitHub (Jun 21, 2025).

Windows Terminal version

1.23.11132.0

Windows build number

10.0.26100.4351

Other Software

No response

Steps to reproduce

In Settings:

  1. Navigate to any section cannot show fully in a window. e.g, Profiles -> Defaults -> Addtional Settings -> Appearance.
  2. Make sure the focus is on terminal app window
  3. Use mouse scroller or the scroll bar, try scroll down

In any command line:

  1. Enable the settings: Profiles -> Defaults or any specific profile for following testing -> Additional settings -> Advanced -> Scroll to input when typing
  2. Executed a command which can populate long output over a window. e.g., Get-ChildItem in a path with many sub-items
  3. Make sure the focus is on terminal app window
  4. Use mouse scroller or the scroll bar, try to scroll up to check the output out of the window area.

Expected Behavior

Should be able to scroll to the position you want. In a command line, if you don't type, it should not scroll to the shell prompt.

Actual Behavior

Seems focus will be sticky to the first focusable element (in settings UI) or the last shell prompt (in command line when Scroll to input when typing is enabled), which prevent you scrolling down or up.
Also, the mouse will flash, like it's kept being captured to the incorrect focus element.

https://github.com/user-attachments/assets/27c12d09-56fc-41c7-a7d0-6d25a784b410

https://github.com/user-attachments/assets/79b6e787-4895-4dec-98f6-2c7816fdecc1

Originally created by @zakarum on GitHub (Jun 21, 2025). ### Windows Terminal version 1.23.11132.0 ### Windows build number 10.0.26100.4351 ### Other Software _No response_ ### Steps to reproduce In Settings: 1. Navigate to any section cannot show fully in a window. e.g, Profiles -> Defaults -> Addtional Settings -> Appearance. 2. Make sure the focus is on terminal app window 3. Use mouse scroller or the scroll bar, try scroll down In any command line: 1. Enable the settings: Profiles -> Defaults or any specific profile for following testing -> Additional settings -> Advanced -> Scroll to input when typing 2. Executed a command which can populate long output over a window. e.g., `Get-ChildItem` in a path with many sub-items 3. Make sure the focus is on terminal app window 4. Use mouse scroller or the scroll bar, try to scroll up to check the output out of the window area. ### Expected Behavior Should be able to scroll to the position you want. In a command line, if you don't type, it should not scroll to the shell prompt. ### Actual Behavior Seems focus will be sticky to the first focusable element (in settings UI) or the last shell prompt (in command line when **Scroll to input when typing** is enabled), which prevent you scrolling down or up. Also, the mouse will flash, like it's kept being captured to the incorrect focus element. https://github.com/user-attachments/assets/27c12d09-56fc-41c7-a7d0-6d25a784b410 https://github.com/user-attachments/assets/79b6e787-4895-4dec-98f6-2c7816fdecc1
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:40:33 +00:00
Author
Owner

@zakarum commented on GitHub (Jun 21, 2025):

Then same issue reproduced on the release version: v1.22.11141.0.
Seems related to a WinUI issue: ScrollViewer Jumps to Top-most TextBox (UWP app)

@zakarum commented on GitHub (Jun 21, 2025): Then same issue reproduced on the release version: v1.22.11141.0. Seems related to a WinUI issue: [ScrollViewer Jumps to Top-most TextBox (UWP app) ](https://github.com/microsoft/microsoft-ui-xaml/issues/597)
Author
Owner

@DHowett commented on GitHub (Jul 2, 2025):

Thanks for the report! Do you, by chance, have any extensions running on your machine? Things that interfere with mouse input, window management, focus, etc./?

Just like in the thread you linked, nobody over here can reproduce it . . . so we're looking for some extrinsic factors 🙂

@DHowett commented on GitHub (Jul 2, 2025): Thanks for the report! Do you, by chance, have any extensions running on your machine? Things that interfere with mouse input, window management, focus, etc./? Just like in the thread you linked, nobody over here can reproduce it . . . so we're looking for some extrinsic factors 🙂
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jul 7, 2025):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Jul 7, 2025): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23377