From 3ce9d022d5d5d292740c9e5776b23fbdbc04ed3e Mon Sep 17 00:00:00 2001 From: Michael <13953785+Laserlicht@users.noreply.github.com> Date: Sun, 27 Aug 2023 22:00:20 +0200 Subject: [PATCH] try to remove glitch --- client/mapView/MapView.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/mapView/MapView.cpp b/client/mapView/MapView.cpp index bdcaf33b1..021ce5ea6 100644 --- a/client/mapView/MapView.cpp +++ b/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(msPassed); Point delta = Point(len * cos(postSwipeAngle), len * sin(postSwipeAngle));