Terminal doesn't respect trackpad inertia #23675

Closed
opened 2026-01-31 08:48:52 +00:00 by claunia · 5 comments
Owner

Originally created by @citelao on GitHub (Oct 8, 2025).

Windows Terminal version

1.23.12681.0

Windows build number

10.0.26504.0 (ge_current_directwinai.251006-1819)

Other Software

No response

Steps to reproduce

On a recent build (later than Sept 2024's Beta KB5043166):

  1. Begin scrolling with a trackpad, so there is inertia.
  2. Press Ctrl.

The window zooms uncontrollably.

Expected Behavior

It's undocumented, but we made a change to the trackpad handler to cancel inertia upon keypresses (internal link).

Scrolling should stop & no zooming should occur.

Actual Behavior

However, Terminal seems to be handling scrolling differently and still seems to maintain this inertia.


BTW, this would have mitigated #5708 and similar.

Originally created by @citelao on GitHub (Oct 8, 2025). ### Windows Terminal version 1.23.12681.0 ### Windows build number 10.0.26504.0 (ge_current_directwinai.251006-1819) ### Other Software _No response_ ### Steps to reproduce On a recent build (later than Sept 2024's Beta [KB5043166](https://blogs.windows.com/windows-insider/2024/09/30/announcing-windows-11-insider-preview-build-22635-4291-beta-channel/)): 1. Begin scrolling with a trackpad, so there is inertia. 2. Press Ctrl. The window zooms uncontrollably. ### Expected Behavior It's undocumented, but we made a change to the trackpad handler to [cancel inertia upon keypresses](https://task.ms/51449382) (internal link). Scrolling should stop & no zooming should occur. ### Actual Behavior However, Terminal seems to be handling scrolling differently and still seems to maintain this inertia. --- BTW, this would have mitigated #5708 and similar.
claunia added the Resolution-ExternalTracking-ExternalExternal-Blocked-WinUI3 labels 2026-01-31 08:48:52 +00:00
Author
Owner

@DHowett commented on GitHub (Oct 9, 2025):

So! Terminal receives all scrolling as mouse wheel events (actually pointer wheel events, but who's counting?) through XAML. We subscribe to the standard PointerWheelChanged event, and only when we receive it do we actually do anything with it.

We aren't tracking inertia or accumulating wheel deltas over time. We're also not using DirectManipulation.

We may need to file a bug on the System XAML folks.

@DHowett commented on GitHub (Oct 9, 2025): So! Terminal receives all scrolling as mouse wheel events (actually pointer wheel events, but who's counting?) _through XAML_. We subscribe to the standard `PointerWheelChanged` event, and only when we receive it do we actually do anything with it. We aren't tracking inertia or accumulating wheel deltas over time. We're also not using DirectManipulation. We may need to file a bug on the System XAML folks.
Author
Owner

@citelao commented on GitHub (Oct 9, 2025):

Oh goodness! This indeed reproes in WinUI Gallery:

  1. On the ScrollView page (e.g.), scroll with a trackpad.
  2. Press Ctrl.

Inertia doesn't stop.

Do we want to file this internally or externally?

@citelao commented on GitHub (Oct 9, 2025): Oh goodness! This indeed reproes in WinUI Gallery: 1. On the ScrollView page (e.g.), scroll with a trackpad. 2. Press Ctrl. Inertia doesn't stop. Do we want to file this internally or externally?
Author
Owner

@DHowett commented on GitHub (Oct 9, 2025):

Weeellll... probably get the same response either way. I think Externally, but considering that Terminal is on WinUI 2 (rather than WinAppSDK/WinUI 3) both may be warranted. 🙂

@DHowett commented on GitHub (Oct 9, 2025): Weeellll... probably get the same response either way. I think Externally, but considering that Terminal is on WinUI 2 (rather than WinAppSDK/WinUI 3) both may be warranted. 🙂
Author
Owner

@citelao commented on GitHub (Oct 13, 2025):

Filed: https://github.com/microsoft/microsoft-ui-xaml/issues/10830

@citelao commented on GitHub (Oct 13, 2025): Filed: https://github.com/microsoft/microsoft-ui-xaml/issues/10830
Author
Owner

@DHowett commented on GitHub (Oct 13, 2025):

Thank you, @citelao! I'm gonna close this one out as a remote duplicate for now.

@DHowett commented on GitHub (Oct 13, 2025): Thank you, @citelao! I'm gonna close this one out as a remote duplicate for now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23675