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

WebView inside NavigationView in WinUI 2.6.1 is not interactable for Windows 10 in Left and LeftCompact modes. #5627

Closed
bkaankose opened this issue Aug 4, 2021 · 1 comment
Labels
area-NavigationView NavView control area-WebView duplicate This issue or pull request already exists

Comments

@bkaankose
Copy link

Describe the bug
WebView content placed inside muxc:NavigationView is not interactable for UWP apps running on Windows 10 when the control is in LeftCompact or Left modes (in Minimal mode it works fine), but fully works fine in Windows 11 (for all modes).

Events like Tapped and RightTapped seem to fire since they are coming from FrameworkElement. However, the content loaded in WebView is not interactable at all. Can't click on hyperlinks or scroll the page.

It works fine in Top and LeftMinimal modes but doesn't work for LeftCompact and Left modes. You can also set PaneDisplayMode to Auto and snap the window to make it minimal and it will work.

Steps to reproduce the bug

  1. Create a blank UWP app and install WinUI 2.6.1
  2. Place muxc:NavigationView in the page and put WebView control inside as a content.
  3. Give WebView a source to display some scrollable web page.

Bug Sample Project: https://github.com/bkaankose/NavigationViewBug

Expected behavior
WebView content should be interactable (tapping on hyperlinks, scrolling etc.)

Version Info
WinUI 2.6.1 on Windows 10 running build 19042 (v20H2). Bug is not reproducible in Windows 11 with the same WinUI package.

NuGet package version:
Microsoft.UI.Xaml 2.6.1

Windows app type:

UWP Win32
Yes No
Windows version Saw the problem?
Insider Build (xxxxx)
October 2020 Update (19042) Yes
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Aug 4, 2021
@michael-hawker
Copy link
Collaborator

Duplicate of #5299

@michael-hawker michael-hawker marked this as a duplicate of #5299 Aug 4, 2021
@michael-hawker michael-hawker added duplicate This issue or pull request already exists area-WebView area-NavigationView NavView control and removed needs-triage Issue needs to be triaged by the area owners labels Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control area-WebView duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants