Skip to content

Commit

Permalink
Fix scroll to change page during page load
Browse files Browse the repository at this point in the history
  • Loading branch information
Guerra24 committed May 29, 2024
1 parent b6d570d commit 6992bb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LRReader.UWP/Views/Tabs/Content/ArchiveTabContent.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ private void ReaderControl_KeyUp(object sender, KeyRoutedEventArgs e)

private void ReaderControl_KeyDown(object sender, KeyRoutedEventArgs e)
{
if (!Data.ShowReader)
if (!Data.ShowReader || _changingPage)
return;

var ctrl = CoreWindow.GetForCurrentThread().GetKeyState(VirtualKey.Control);
Expand Down Expand Up @@ -441,6 +441,8 @@ private void FocusReader()

private void ReaderControl_PointerWheelChanged(object sender, PointerRoutedEventArgs e)
{
if (_changingPage)
return;
var pointerPoint = e.GetCurrentPoint(ScrollViewer);
if (e.Pointer.PointerDeviceType == PointerDeviceType.Mouse)
{
Expand Down

0 comments on commit 6992bb0

Please sign in to comment.