-
Notifications
You must be signed in to change notification settings - Fork 693
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: Mouse Scroll Wheel does nothing #2931
Comments
@mdtauk I don't repro this issue. You're rolling the mouse wheel while the mouse is over the WebView2 and it does no scrolling? Is there anything special about your mouse? |
I don't think so, it's a Microsoft intellisense mouse released a year or so ago. https://www.microsoft.com/accessories/en-gb/products/mice/microsoft-classic-intellimouse |
Today I'm reproing it, both with attempted two-finger scrolling with a touchpad and an old mouse. Something is weird (and definitely broken) here... |
This is a regression from the previous release, If you hold down the left mouse button while scrolling, the events are received and the web view scrolls. |
It looks like we weren't able to repro this internally, so I'll be closing this issue. If this issue still persists in WinUI 3 Preview 4 (to be released in early February), please re-open this issue. |
This is still a problem with WinUI3 1.0. Turning the mouse wheel has no vertical scrolling effect in the WebView2 embedded browser. Are there plans to fix this? Thank you. |
I can confirm this bug still persists. It’s super annoying in a ScrollView that contains multiple Controls, including a WebView2. It just stops scrolling and I have to instruct users to drag the scroll bar isntead. |
@Irimi1 If I'm reading your comment correctly, I think your situation is that you want the ScrollView to scroll even when the mouse is over a WebView2? I think that is a different situation from what this issue originally tracked. It is unfortunately a limitation currently that mouse wheel events are consumed by the WebView2 even if the content of the WebView2 can't scroll. This does create problems when trying to use a WebView2 control inside a scrolling region. |
I have not played much with WebView2 since my original comment above. However, there is some significant work looming that will depend on a successful adoption of WebView2 into our app. From what I'm seeing above, it seems like the only scrolling support for WebView2 content would be to drag a scrollbar on whatever page is being displayed within the WebView2 control. Is this correct? Thank you. |
@rcohn Yes, the scrollbar will work, or alternatively moving the mouse to not be over the WebView2 (but still over the scrolling region) before using the mouse wheel, which is a workaround likely not obvious to users. Large WebView2 elements don't behave very well in a scrolling region due to this limitation. |
@codendone Do you know of any workaround or alternative that I could use? My goal is to display an area with a Webview below a DataGrid that I can scroll together, like if they were one element. |
@Irimi1 unless you’re willing to dig into the Win32 internal, I think you’re going to have to rethink that approach (eg stream or mirror the data to an html/js alternative to the data grid) because AFAIK the only control that supports virtualized load/scroll is |
@Irimi1 A couple other potential changes which could help:
|
@codendone It does indeed not require any input, so option 1. sounds like something I could do. Thanks so much (also @mqudsi) for your help. :) |
Still happening! |
1 similar comment
Still happening! |
Still happening. |
Describe the bug
Using the Scroll Wheel on my mouse is not scrolling the page
Steps to reproduce the bug
Expected behavior
The Page should smoothly scroll as you turn the Scroll Wheel.
Version Info
XAML Controls Gallery
version 1.2.22.0
NuGet package version:
Additional context
Pressing down on the Scroll Wheel/Middle Mouse Button, and dragging will scroll, but will not display the expected Dragging Cursor
The text was updated successfully, but these errors were encountered: