فهرست منبع

Update MapViewController.cpp

Michael 2 سال پیش
والد
کامیت
b61890355f
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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 || actualZoom == defaultTileSize;
+		bool isInDeadZone = targetTileSize != actualZoom || actualZoom == Point(defaultTileSize, defaultTileSize);
 
 		if(!wasInDeadZone && isInDeadZone)
 			GH.input().hapticFeedback();