Skip to content

Commit e5595e8

Browse files
committed
943023 - Modified the program
1 parent 32c7c01 commit e5595e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Navigation/zoom-scroll-customization/CustomizeDefaultZoomOnCtrlScroll/MainWindow.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ private void PDFViewer_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
4545
{
4646
if (e.Delta > 0)
4747
{
48-
int currentZoom = (PDFViewer.ZoomPercentage + 5) - 25;
48+
int currentZoom = (PDFViewer.ZoomPercentage + 5);
4949
PDFViewer.ZoomTo(currentZoom);
5050
}
5151
else
5252
{
53-
int currentZoom = (PDFViewer.ZoomPercentage - 5) + 25;
53+
int currentZoom = (PDFViewer.ZoomPercentage - 5);
5454
PDFViewer.ZoomTo(currentZoom);
5555
}
5656
}
57+
e.Handled = true;
5758
}
5859

5960

0 commit comments

Comments
 (0)