From bfed472e3b0bc7eda7a8659efcad4a7996d667b9 Mon Sep 17 00:00:00 2001 From: Michael Gordeev Date: Fri, 14 Sep 2018 17:44:15 +0300 Subject: [PATCH] #172: Fixed --- FoxTube/Controls/VideoPlayer.xaml.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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(); }