我在使用SKLn-Rad HybridWebView时遇到问题。尝试向下滚动时,视图会上升,反之亦然。我认为WebView通常存在问题,因为在使用此混合Webview之前,我也遇到过同样的问题。
XAML代码:
<StackLayout
Padding="3"
BackgroundColor="#e2cedf"
HorizontalOptions="FillAndExpand"
VerticalOptions="FillAndExpand">
<Grid HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="40" />
<ColumnDefinition Width="40" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="40" />
<ColumnDefinition Width="40" />
</Grid.ColumnDefinitions>
<webview:FormsWebView
x:Name="WebContent"
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="5"
ContentType="Internet"
HorizontalOptions="FillAndExpand"
OnContentLoaded="OnNavigated"
OnNavigationCompleted="OnNavigated"
OnNavigationStarted="OnNavigating"
Source="https://purpuraylimon.com/"
VerticalOptions="FillAndExpand" />
</Grid>
</StackLayout>