-
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 in ScrollViewer #7902
Comments
From an underlying implementation perspective, the FlipView scenario is the same as #4596. My comment from that issue applies here as well:
It is still the case that we want to support this eventually and don't currently have an ETA. |
This is quite frustrating that scroll chaining is not supported and neither is any way to disable the capture of the PointerWheelChanged events. Due to the lower level way that WebView2 sets up its event hooks for pointer events, it seems to bypass all the conventional means available to control event routing in UWP apps. |
It seems to be possible to hackily get an acceptable workaround by using a pattern like this: Essentially it hooks the pointer wheel event, and disables hit testing entirely, then uses a debouncer to re-enable hit testing after 500ms of no further pointer wheel events. This gives the effect that when scrolling your ScrollView, the WebView2 doesn't stop the scrolling. But it still allows for interactivity with the WebView2 e.g. mouse hover/clicks events still work.
|
Related to #108 I suppose too? |
Received; thanks!
…On Wed, Jul 12, 2023, 20:33 Michael Hawker MSFT (XAML Llama) < ***@***.***> wrote:
Related to #108
<#108> I suppose too?
—
Reply to this email directly, view it on GitHub
<#7902 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPZ3AR52ULU5NCO3UZXQZ3XP464BANCNFSM6AAAAAAR3QDPYM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Originally posted by @codendone in #5654 (comment)
We are in the process of migrating from WebView to WebView2. Our application allows a user to interact with HTML content (such as highlighting), and allows swiping to the previous or next content. Our implementation for this was, from a high level, a FlipView wherein each FlipViewItem contained a WebView.
Since WebView2 consumes all scroll and pan actions, we have lost our ability to swipe to content unless we disable the webview, in which case the user can't interact with the content.
To confirm your previous statement, there isn't a way presently to use a WebView2 (allowing user interaction) within a ScrollViewer? If that is the case, is there a possibility of adding this functionality?
Thanks very much!
The text was updated successfully, but these errors were encountered: