浏览代码

try to remove glitch

Michael 2 年之前
父节点
当前提交
3ce9d022d5
共有 1 个文件被更改,包括 1 次插入2 次删除
  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));