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.
This commit is contained in:
David Connet 2021-08-06 19:34:19 +02:00 committed by Vadim Zeitlin
parent de2b81b06f
commit 233c487dfd

View File

@ -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;