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

This commit is contained in:
frosch 2011-02-05 21:07:25 +00:00
parent ef3ec0f8c8
commit d82475cf88
1 changed files with 2 additions and 1 deletions

View File

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