1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Fixed broken map zooming using the mouse wheel

(introduced in 11.0)
This commit is contained in:
Martin Tůma 2022-06-02 18:30:19 +02:00
parent af0bb2e268
commit 25869200db

View File

@ -663,7 +663,8 @@ void MapView::wheelEvent(QWheelEvent *event)
zoom((delta > 0) ? 1 : -1, event->position().toPoint(), shift); zoom((delta > 0) ? 1 : -1, event->position().toPoint(), shift);
#endif // QT 5.15 #endif // QT 5.15
QGraphicsView::wheelEvent(event); /* Do not call QGraphicsView::wheelEvent() here as this would shift the
view ! */
} }
void MapView::keyPressEvent(QKeyEvent *event) void MapView::keyPressEvent(QKeyEvent *event)