1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Update MapViewController.cpp

This commit is contained in:
Michael
2023-08-27 22:55:05 +02:00
committed by GitHub
parent da3014bd54
commit 1c89c71031

View File

@ -120,7 +120,7 @@ void MapViewController::modifyTileSize(int stepsChange)
if(actualZoom.y >= defaultTileSize - zoomTileDeadArea && actualZoom.y <= defaultTileSize + zoomTileDeadArea)
actualZoom.y = defaultTileSize;
bool isInDeadZone = targetTileSize != actualZoom;
bool isInDeadZone = targetTileSize != actualZoom || actualZoom == defaultTileSize;
if(!wasInDeadZone && isInDeadZone)
GH.input().hapticFeedback();