From 71bed5022c52cf658ccfe4251460f2b94d68218a Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 6 Aug 2014 13:51:54 +0200 Subject: Don't zoom the profile when the left button is pressed This prevents zooming out to more than max in the planner. Using a Mac MagicMouse it happens at times that the finger slides on the mouse while dragging a waypoint which can result in zooming out further than max. Fixes #695 Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 78e5eb277..a077f1619 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -613,6 +613,8 @@ void ProfileWidget2::wheelEvent(QWheelEvent *event) if (currentState == EMPTY) return; QPoint toolTipPos = mapFromScene(toolTipItem->pos()); + if(event->buttons() == Qt::LeftButton) + return; if (event->delta() > 0 && zoomLevel < 20) { scale(zoomFactor, zoomFactor); zoomLevel++; -- cgit v1.2.3-70-g09d2