Ver Fonte

try to remove glitch

Michael há 2 anos atrás
pai
commit
3ce9d022d5
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      client/mapView/MapView.cpp

+ 1 - 2
client/mapView/MapView.cpp

@@ -156,8 +156,7 @@ void MapView::postSwipe(uint32_t msPassed)
 			}	
 		}
 		swipeHistory.clear();
-	} else
-		postSwipeSpeed = 0.0;
+	}
 	if(postSwipeSpeed > postSwipeMinimalSpeed) {
 		double len = postSwipeSpeed * static_cast<double>(msPassed);
 		Point delta = Point(len * cos(postSwipeAngle), len * sin(postSwipeAngle));