我正在通用Windows平台上创建一个应用程序,其中我有一些HTML文件,HTML文件包含Product 360视图,我已经使用WebView加载HTML文件现在这里我面临的问题是我什么时候使用鼠标指针旋转设备上的360图像它对我来说工作正常,但当我使用触摸而不是鼠标指针时它不会旋转我请帮我解决这个问题。
注意:您使用https://www.gsmarena.com/motorola_moto_x4-3d-spin-8634.php
链接作为产品360视图的示例
MainPage.xaml中
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<WebView x:Name="MyWebView" Margin="10"/>
</Grid>
MainPage.xaml.cs中
public MainPage()
{
this.InitializeComponent();
Loaded += MainPage_Loaded;
}
private void MainPage_Loaded(object sender, RoutedEventArgs e)
{
string src = "ms-appx-web:///Assets/HPS_html/index.html";
this.MyWebView.Navigate(new Uri(src));
//this.MyWebView.Navigate(new Uri("https://www.gsmarena.com/motorola_moto_x4-3d-spin-8634.php"));
}