Browse Source

stop smooth scroll when using window borders to scroll

Laserlicht 1 year ago
parent
commit
b8e40978a0
1 changed files with 3 additions and 0 deletions
  1. 3 0
      client/mapView/MapView.cpp

+ 3 - 0
client/mapView/MapView.cpp

@@ -122,7 +122,10 @@ void MapView::onMapLevelSwitched()
 void MapView::onMapScrolled(const Point & distance)
 {
 	if(!isGesturing())
+	{
+		postSwipeSpeed = 0.0;
 		controller->setViewCenter(model->getMapViewCenter() + distance, model->getLevel());
+	}
 }
 
 void MapView::onMapSwiped(const Point & viewPosition)