From c1d8aea35a025ba43d86a5aa03cccbaff7cbc7c7 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 24 May 2022 17:58:34 -0700 Subject: [PATCH] fix spacing --- 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 159e3f86b5..9ed1f35d0d 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -281,6 +281,7 @@ void MapWindow::wheelEvent(QWheelEvent *ev) { m_map->scaleBy(1 + factor, ev->pos() / MAP_SCALE); update(); + zoom_counter = PAN_TIMEOUT; ev->accept(); } @@ -306,7 +307,6 @@ void MapWindow::pinchTriggered(QPinchGesture *gesture) { // TODO: figure out why gesture centerPoint doesn't work m_map->scaleBy(gesture->scaleFactor(), {width() / 2.0 / MAP_SCALE, height() / 2.0 / MAP_SCALE}); update(); - zoom_counter = PAN_TIMEOUT; } }