mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 18:42:07 +08:00
nav: double click reset pan/zoom timers
old-commit-hash: 34346c8525d81fbfb7b12ee9a5ae550a1472f156
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user