1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Update MapViewController.cpp

This commit is contained in:
Michael 2023-08-27 23:17:47 +02:00 committed by GitHub
parent 1c89c71031
commit b61890355f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 || actualZoom == defaultTileSize;
bool isInDeadZone = targetTileSize != actualZoom || actualZoom == Point(defaultTileSize, defaultTileSize);
if(!wasInDeadZone && isInDeadZone)
GH.input().hapticFeedback();