MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Mouse events not captured by WebView2 if Canvas present on top of it

Open
#3,181 4 comments 0 reactions 1 assignee View on GitHub

@champnic is already working on this.

Since Feb 4, 2023.

bug tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description
WebView2 behavior differs from WebView behavior when InkCanvas is placed on top of it

Version
SDK:1.0.1518.46
Framework: UWP
OS: Win11

Repro Steps

  1. Create a UWP app
  2. Add a Grid
  3. Add WebView2 control with source a long website (e.g. - https://learn.microsoft.com/en-in/)
  4. Add InkCanvas control below WebView2 (in view-tree, it will be rendered over WebView2)
  5. Run app and try to scroll

Expected behavior - Page scrolls
Actual behavior - Page does not scroll

Additional Context
Same app, if used with WebView allows mouse interaction even when InkCanvas is placed above WebView

Is there an alternative using which we could use InkCanvas over WebView2 until the bug is fixed?

AB#43256205

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.