2
0
Эх сурвалжийг харах

stop smooth scroll when using window borders to scroll

Laserlicht 2 жил өмнө
parent
commit
b8e40978a0

+ 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)