瀏覽代碼

stop smooth scroll when using window borders to scroll

Laserlicht 1 年之前
父節點
當前提交
b8e40978a0
共有 1 個文件被更改,包括 3 次插入0 次删除
  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)