(svn r21988) -Change: Disable smooth scrolling for GHK_CENTER_ZOOM when zooming is also involved.

pull/155/head
frosch 14 years ago
parent c003e1a358
commit 7a5d9299ff

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

Loading…
Cancel
Save