1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Allow zooming with mouse wheel

This commit is contained in:
Ivan Savenko
2023-05-17 00:49:24 +03:00
parent 3e9da333cf
commit 9e3bc87a6b
7 changed files with 27 additions and 11 deletions

View File

@@ -154,9 +154,9 @@ void MapView::onViewWorldActivated(uint32_t tileSize)
controller->setTileSize(Point(tileSize, tileSize));
}
void MapView::onMapZoomLevelChanged(double zoomFactor)
void MapView::onMapZoomLevelChanged(int stepsChange)
{
controller->modifyTileSize(zoomFactor);
controller->modifyTileSize(stepsChange);
}
void MapView::onViewMapActivated()