Jelajahi Sumber

Update MapViewController.cpp

Michael 2 tahun lalu
induk
melakukan
1c89c71031
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      client/mapView/MapViewController.cpp

+ 1 - 1
client/mapView/MapViewController.cpp

@@ -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();