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(); } }
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(); } }