nav: double click reset pan/zoom timers

old-commit-hash: 34346c8525
commatwo_master
Willem Melching 4 years ago
parent 9d12eb4d3a
commit 63a4bdf281
  1. 3
      selfdrive/ui/qt/maps/map.cc

@ -415,6 +415,9 @@ void MapWindow::mouseDoubleClickEvent(QMouseEvent *ev) {
if (last_position) m_map->setCoordinate(*last_position);
if (last_bearing) m_map->setBearing(*last_bearing);
m_map->setZoom(util::map_val<float>(velocity_filter.x(), 0, 30, MAX_ZOOM, MIN_ZOOM));
pan_counter = 0;
zoom_counter = 0;
}
void MapWindow::mouseMoveEvent(QMouseEvent *ev) {

Loading…
Cancel
Save