mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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 <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9d801c663f
commit
71bed5022c
1 changed files with 2 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue