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:
parent
de2b81b06f
commit
233c487dfd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user