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

WebView2: Select text and scroll no longer works. #9237

Closed
AdriaanLarcai opened this issue Nov 20, 2023 · 7 comments
Closed

WebView2: Select text and scroll no longer works. #9237

AdriaanLarcai opened this issue Nov 20, 2023 · 7 comments
Labels
area-WebView closed-NotRepro Described behavior could not be reproduced. needs-repro team-Controls Issue for the Controls team

Comments

@AdriaanLarcai
Copy link

AdriaanLarcai commented Nov 20, 2023

Describe the bug

Selecting text in a Webview2 control, and while holding the left mouse button pressed, scrolling with the mouse wheel causes the app to freeze / mouse input to be lost.

Steps to reproduce the bug

Create a new Windows App SDK 1.4 Desktop application.
Add a WebView2 control with a source where the text / content is larger than the control's viewspace.
Select any visible text and, while holding the left mouse button pressed, scroll in any direction using the mouse wheel.

Expected behavior

The WebView2 control should scroll the content in the direction of the mouse wheel.
This was working in a prior version.

Screenshots

No response

NuGet package version

Windows App SDK 1.4.3: 1.4.231115000

Packaging type

Packaged (MSIX), Unpackaged

Windows version

Windows 11 version 22H2 (22621, 2022 Update), Windows 11 version 21H2 (22000), Windows 10 version 22H2 (19045, 2022 Update), Windows 10 version 21H2 (19044, November 2021 Update), Windows 10 version 21H1 (19043, May 2021 Update), Windows 10 version 20H2 (19042, October 2020 Update), Windows 10 version 2004 (19041, May 2020 Update), Windows 10 version 1909 (18363, November 2019 Update), Windows 10 version 1903 (18362, May 2019 Update), Windows 10 version 1809 (17763, October 2018 Update)

IDE

Visual Studio 2022

Additional context

No response

@bpulliam bpulliam transferred this issue from microsoft/WindowsAppSDK Jan 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 11, 2024
@bpulliam bpulliam added area-WebView team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels Jan 11, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@applefanbois
Copy link

applefanbois commented Feb 13, 2024

We have the same problem, reported by all our users.

We have the latest stable sdk.

@DmitriyKomin
Copy link
Contributor

@AdriaanLarcai, thank you for reporting this. I tested the scenario locally and text selection + mouse-wheel scroll + small control size is working well:

WV2_Selection_Scroll_No_Repro.mp4

This is with WinAppSDK 1.4.230913002 / WebView2Runtime 121.0.2277.128.

Resolving Not Repro. If you find you can still repro the issue, please comment here and provide a repro app / video. Thanks!

@AdriaanLarcai
Copy link
Author

Hi, perhaps my issue description was not clear enough. I will update it. But the issue is not selecting text and then scrolling. The issue is selecting text, and while still holding the left mouse button pressed, using the mouse wheel to scroll up and down. Users do this when they need to select more text than what's visible on screen. This is functionality that used to work, and no longer works.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 23, 2024
@applefanbois
Copy link

This is a techniques that a lot of power users use : scroll the mouse wheel while holding the left mouse button to select text across many pages not visible on screen.

@ranjeshj ranjeshj reopened this Feb 26, 2024
@DmitriyKomin
Copy link
Contributor

Thanks @AdriaanLarcai and @applefanbois. I am still not able to repro this - holding down left mouse button and scrolling with the wheel works well for me, even after updating to the same WinAppSDK 1.4.230913002 that you used (+ WebView2Runtime 121.0.2277.128). Can you attach a video of the repro that you are seeing?

@DmitriyKomin
Copy link
Contributor

DmitriyKomin commented Feb 28, 2024

This issue is also being tracked on Edge side at MicrosoftEdge/WebView2Feedback#4291. Not clear yet if it's specific to WinAppSDK or an underlying Edge/CoreWebView2 issue, makes sense to keep both open for now. + @champnic, @tochukwuIbeEkeocha FYI.

@bpulliam bpulliam removed the needs-triage Issue needs to be triaged by the area owners label Feb 29, 2024
@llongley llongley closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2024
@llongley llongley added the closed-NotRepro Described behavior could not be reproduced. label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView closed-NotRepro Described behavior could not be reproduced. needs-repro team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

6 participants