Scroll wheel (and possibly touchpad) better handled, see #3923

This commit is contained in:
Hombre
2018-03-23 23:21:05 +01:00
parent 806e1b32bb
commit bf6702fa56
2 changed files with 13 additions and 9 deletions

View File

@@ -289,7 +289,7 @@ void CropWindow::scroll (int state, GdkScrollDirection direction, int x, int y)
if (direction == GDK_SCROLL_UP && !isMaxZoom()) {
zoomIn (true, newCenterX, newCenterY);
} else if (!isMinZoom()) {
} else if (direction == GDK_SCROLL_DOWN && !isMinZoom()) {
zoomOut (true, newCenterX, newCenterY);
}
}