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

Fix horizontal scrolling on trackpad #8403

Merged
merged 1 commit into from
May 2, 2023

Conversation

tjamesmac
Copy link
Contributor

@tjamesmac tjamesmac commented Apr 18, 2023

Summary

Adds a boolean check to see if a horizontal scrolling is available

Description

Amended the HandlePointerWheelChanged method to check if the mouse pointer is capable of being scrolled horizontally, if so, use a horizontal mouse wheel movement instead of a vertical one

Motivation and Context

Enables horizontal scrolling

Fixes #7772

How Has This Been Tested?

see above

Screenshots (if appropriate):

Before

before7.mp4

After

after7.mp4

EDIT: After reading the contribution guidelines I thought creating an interaction test would be sufficient, similar to this test. However it seems that the test automation library doesn't have an equivalent method to enable horizontal scrolling. Is there a different way I could go about testing this fix? Appreciate any help as this is new to me.

Adds check to mouse scrolling to see if horizontal scrolling is possible

Fix microsoft#7772
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Apr 18, 2023
@codendone codendone self-requested a review April 19, 2023 18:24
@codendone codendone added area-WebView team-Rendering Issue for the Rendering team labels Apr 19, 2023
@codendone
Copy link
Contributor

I don't know of a good way to add a test for this, given the issue you've noted. The change/risk is small enough that I'm satisfied with manual testing for horizontal wheel.

Thanks for contributing this fix!

@codendone
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tjamesmac tjamesmac changed the title [WIP] Fix horizontal scrolling on trackpad Fix horizontal scrolling on trackpad Apr 25, 2023
@tjamesmac
Copy link
Contributor Author

Thanks @codendone for taking a look!

@codendone codendone merged commit 0e2d882 into microsoft:main May 2, 2023
1 check passed
@codendone
Copy link
Contributor

Fix also merged into WinUI3 (internal bug).

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label May 2, 2023
@vagisha-nidhi195
Copy link

@codendone Thanks for merging this one. Is there an intended date for a release with this fix?

kmahone pushed a commit that referenced this pull request Jul 7, 2023
Adds check to mouse scrolling to see if horizontal scrolling is possible

Fix #7772

Co-authored-by: Thomas McAuliffe <tjamc@amazon.com>
kmahone added a commit that referenced this pull request Jul 7, 2023
Includes these fixes:
* [Fix Deprecated icons ](#8576)
* [Fix Voice Access 'Show Bubbles' annotation of WebView2 Content](#8551)
* [Add const keyword to resolve warnings (treated as errors) C26462 and C26496](#8567)
* [[WebView2] Apply text scale factor to CoreWebView2 content](#8540)
* [Fix horizontal scrolling on trackpad](#8403)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView team-Rendering Issue for the Rendering team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Horizontal scrolling with touchpad doesn't work in WebView2
3 participants