summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index ee135f686..f7e19c9de 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -314,8 +314,9 @@ struct MainWindow : Window
case GHK_CENTER_ZOOM: {
Point pt = GetTileBelowCursor();
if (pt.x != -1) {
+ bool instant = (num == GHK_CENTER_ZOOM && this->viewport->zoom != ZOOM_LVL_MIN);
if (num == GHK_CENTER_ZOOM) MaxZoomInOut(ZOOM_IN, this);
- ScrollMainWindowTo(pt.x, pt.y);
+ ScrollMainWindowTo(pt.x, pt.y, -1, instant);
}
break;
}