Tapping off of the active EdgeNavigator
panel to dismiss it will not work if the WebView
is what you tapped. @jake (Slack) suggested this may be a bug. Tested on iOS 9.2.1, Fuse 0.9.11 (build 5893).
I created a project that shows the potential bug: https://www.dropbox.com/s/2u4afd065grz9ux/WebViewEdgeNavigatorBug.zip?dl=0
And here’s the UX, for easy reference:
<App Theme="Basic">
<DockPanel>
<StackPanel Dock="Top">
<StatusBarBackground />
<!-- Button to activate sidebar -->
<Button Text="Activate Sidebar">
<Clicked>
<Set edgeNav.Active="sidebar" />
</Clicked>
</Button>
</StackPanel>
<BottomBarBackground Dock="Bottom" />
<Panel>
<EdgeNavigator ux:Name="edgeNav">
<Panel ux:Name="sidebar" Edge="Right" Width="50%" Background="#F00">
<ActivatingAnimation>
<!-- Moves the main panel to match the sidebar coming in -->
<Move Target="main" X="-0.5" RelativeTo="ParentSize" />
</ActivatingAnimation>
</Panel>
<DockPanel ux:Name="main">
<Panel Dock="Top" Width="100%" Height="50%" Background="#0F0">
<Text TextWrapping="Wrap" Width="50%" Alignment="CenterRight">
This green panel can dismiss the sidebar if tapped, but the WebView below cannot be tapped to dismiss the sidebar.
</Text>
</Panel>
<NativeViewHost>
<WebView Url="http://www.google.com/" />
</NativeViewHost>
</DockPanel>
</EdgeNavigator>
</Panel>
</DockPanel>
</App>
Worth mentioning that you also can’t swipe from the edge of the WebView
to pull out the sidebar either, although I don’t know if that’s a bug or intended/known.