Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t scroll with Synaptics touchpad in WinUI Win32 apps #2482

Closed
BreeceW opened this issue May 19, 2020 · 6 comments
Closed

Can’t scroll with Synaptics touchpad in WinUI Win32 apps #2482

BreeceW opened this issue May 19, 2020 · 6 comments
Assignees
Labels
product-winui3 WinUI 3 issues team-CompInput Issue for IXP (Composition, Input) team team-Reach Issue for the Reach team

Comments

@BreeceW
Copy link
Contributor

BreeceW commented May 19, 2020

Describe the bug
This issue echoes #2172 except it also applies to WinUI Win32. Scrolling does not work using an HP Spectre x360 that’s a few years old and does not have a precision trackpad, just like in the Windows Terminal’s issue. Windows has historically had issues with touchpad scrolling inactive windows, but here’s the bizarre part: an active WinUI Win32 window will not scroll, but an inactive window will, provided that a certain other window is active. Since this is convoluted, I will format it in a table.

Active window Synaptics scrolling behavior
The WinUI Win32 app itself No scrolling in WinUI Win32 app
Windows taskbar Scrolling works in WinUI Win32 app
Any UWP app Scrolling works in WinUI Win32 app
The desktop No scrolling in WinUI Win32 app
Microsoft Edge (Chromium) No scrolling in WinUI Win32 app
A different WinUI Win32 app No scrolling in the other WinUI Win32 app
File Explorer No scrolling in WinUI Win32 app, but File Explorer scrolls instead

Sorry if this is confusing. I was about to publish this issue before I realized that the window does scroll under certain circumstances (I have also tested this and it is true for XAML islands as well). The key takeaway, though, is that scrolling in WinUI Win32 does not function in a useful way with a Synaptics touchpad.

I assume that these are limitations in the Synaptics driver, but I would love it if WinUI Win32 apps worked just as smoothly with the touchpad as it does in UWP apps. If a UWP app is the active window, it always scrolls the correct inactive window if you mouse over it. This may not be possible, but I would expect, at the least, a patch to be applied to fix basic two-finger scrolling.

Steps to reproduce the bug
Steps to reproduce the behavior:

  1. Attempt two-finger scroll with a Synaptics touchpad with your WinUI Win32 app active
  2. It will not scroll
  3. Try clicking other windows (like those described in the tab) and try using two-finger scroll on your WinUI Win32 app without clicking on it first
  4. It may or may not scroll depending on what was focused (it’s worth pointing out that if it does scroll, it is not the same smooth experience as in UWP)

Expected behavior
I expect a WinUI Win32 app to scroll when the window is focused (must), scroll when the window is not focused (if possible), and scroll as smoothly as it does in UWP when using a Synaptics touchpad.

Version Info

NuGet package version:
Microsoft.WinUI 3.0.0-preview1.200515.3

Windows 10 version Saw the problem?
Insider Build (xxxxx)
November 2019 Update (18363) Yes
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT

Additional context
Using the on screen touchpad, which does successfully scroll in the WinUI Win32 app, it is apparent that the scrolling behavior is different between UWP and Win32. For example, the UWP app has a bouncing effect when scrolling to the ends. I think this warrants a separate issue, but I would like someone with a precision touchpad to test this first. Scrolling with the touch screen is identical for both.

@msft-github-bot msft-github-bot added the needs-triage Issue needs to be triaged by the area owners label May 19, 2020
@Poopooracoocoo
Copy link

the on screen touchpad is a PTP.

i don't think microsoft cares that win32 apps don't have overscroll or smooth scroll despite using it themselves.

@StephenLPeters StephenLPeters added team-Reach Issue for the Reach team product-winui3 WinUI 3 issues team-CompInput Issue for IXP (Composition, Input) team and removed needs-triage Issue needs to be triaged by the area owners labels May 20, 2020
@stevewri stevewri self-assigned this Jun 11, 2020
@stevewri
Copy link

stevewri commented Jun 11, 2020

Thanks for reporting this! We have some recent fixes that may address these issues. Working to repro with the latest builds; will investigate further if these are still issues.

@mqudsi
Copy link

mqudsi commented Jun 17, 2020

This affects WebView2 even in UWP applications, which is actually a win32 component - it's an easy repro if that's what you're searching for.

@codendone
Copy link
Contributor

I believe this was fixed in Preview 3. If you still repro on Preview 3 or the upcoming Preview 4, please reactivate.

@SKhalidQ
Copy link

This is still a problem in WinUI 3

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Sep 19, 2022
@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Mar 13, 2023
@torum
Copy link

torum commented Mar 18, 2023

This is NOT fixed.

None of WinUI3 apps including WinUI 3 gallery app work correctly with My old Dell Inspiron 7437 note PC's touchpad. Strangely, it scrols if app is not focused though. BTW, WPF apps work fine without any problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product-winui3 WinUI 3 issues team-CompInput Issue for IXP (Composition, Input) team team-Reach Issue for the Reach team
Projects
None yet
Development

No branches or pull requests

10 participants