Archived
1
0
This commit is contained in:
Michael Gordeev
2018-09-14 17:44:15 +03:00
parent 02862490b3
commit bfed472e3b
+8
View File
@@ -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();
}