From 9c588e6117b0c25d42877fad1d7e59dce030170f Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 21 May 2021 17:10:59 +0200 Subject: [PATCH] maps: fix pan amount after 2x scaling --- selfdrive/ui/qt/maps/map.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 9620a18de1..a2571e055c 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -286,7 +286,7 @@ void MapWindow::mouseMoveEvent(QMouseEvent *ev){ if (!delta.isNull()) { pan_counter = PAN_TIMEOUT; - m_map->moveBy(delta); + m_map->moveBy(delta / MAP_SCALE); } m_lastPos = ev->localPos();