From b8e40978a077389bf2ef894964f9903c3cbbd1d4 Mon Sep 17 00:00:00 2001 From: Laserlicht <13953785+Laserlicht@users.noreply.github.com> Date: Sat, 9 Dec 2023 17:29:57 +0100 Subject: [PATCH] stop smooth scroll when using window borders to scroll --- client/mapView/MapView.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/mapView/MapView.cpp b/client/mapView/MapView.cpp index b39c8a6f5..d1375f1df 100644 --- a/client/mapView/MapView.cpp +++ b/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)