From 233c487dfd75fc9f1ae126345ec9fdc1c3571279 Mon Sep 17 00:00:00 2001 From: David Connet Date: Fri, 6 Aug 2021 19:34:19 +0200 Subject: [PATCH] Fix direction of mouse wheel zoom in print preview Make zooming work the same as in all the other programs rather than zooming in/out in the reverse direction. Closes #19215. --- src/common/prntbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index af5a731807..fd0651f164 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -1058,7 +1058,7 @@ void wxPreviewCanvas::OnMouseWheel(wxMouseEvent& event) else delta = 50; - if ( event.GetWheelRotation() > 0 ) + if ( event.GetWheelRotation() < 0 ) delta = -delta; int newZoom = currentZoom + delta;