private void Window_ManipulationDelta(object sender, ManipulationDeltaEventArgs e)
 {
     if (e.DeltaManipulation.Translation.X < -1)
     {
         viewModel.LeftGestureStarted();
     }
     else if (e.DeltaManipulation.Translation.X > 1)
     {
         viewModel.RightGestureStarted();
     }
 }
Exemple #2
0
 private void MainPage_OnManipulationDelta(object?sender, ManipulationDeltaEventArgs e)
 {
     if (e.DeltaManipulation.Translation.X < -1)
     {
         _lastGestureIsTap = false;
         _invadersViewModel.LeftGestureStarted();
     }
     else if (e.DeltaManipulation.Translation.X > 1)
     {
         _lastGestureIsTap = false;
         _invadersViewModel.RightGestureStarted();
     }
 }