diff --git a/FoxTube/Controls/VideoPlayer.xaml.cs b/FoxTube/Controls/VideoPlayer.xaml.cs index 10916d8..8d608df 100644 --- a/FoxTube/Controls/VideoPlayer.xaml.cs +++ b/FoxTube/Controls/VideoPlayer.xaml.cs @@ -52,6 +52,7 @@ namespace FoxTube public event ObjectEventHandler NextClicked; CoreCursor cursorBackup = Window.Current.CoreWindow.PointerCursor; + Point cursorPositionBackup; public TimeSpan elapsed; TimeSpan remaining; @@ -246,7 +247,10 @@ namespace FoxTube if (!miniView) touchCentral.Visibility = Visibility.Collapsed; if (pointerCaptured) + { + cursorPositionBackup = Window.Current.CoreWindow.PointerPosition; Window.Current.CoreWindow.PointerCursor = null; + } seekIndicator.Visibility = Visibility.Collapsed; t.Stop(); } @@ -304,6 +308,10 @@ namespace FoxTube private void UserControl_PointerMoved(object sender, PointerRoutedEventArgs e) { + if (cursorPositionBackup == null) + cursorPositionBackup = Window.Current.CoreWindow.PointerPosition; + else if (cursorPositionBackup == Window.Current.CoreWindow.PointerPosition) + return; ShowControls(); }