Skip to content

Commit

Permalink
20230805 better render cycle on tapped
Browse files Browse the repository at this point in the history
  • Loading branch information
der3318 committed Aug 5, 2023
1 parent d96e155 commit 47107cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PianoSheetViewer/ViewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ private async Task RenderView()
private async void OnScreenTapped(object sender, TappedRoutedEventArgs e)
{
viewPhase += 1;
if (viewPhase * 3 >= pianoSheetInfo.NumberOfPages)
{
viewPhase = 0;
}
await RenderView();
e.Handled = true;
}
Expand Down

0 comments on commit 47107cf

Please sign in to comment.