Skip to content

Commit

Permalink
[fix #18418] do not pursue when wheel event when delta = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 15, 2018
1 parent 32d4bcc commit 6396571
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -1543,6 +1543,12 @@ void QgsMapCanvas::wheelEvent( QWheelEvent *e )
return;
}

if ( e->delta() == 0 )
{
e->accept();
return;
}

double zoomFactor = mWheelZoomFactor;

// "Normal" mouse have an angle delta of 120, precision mouses provide data faster, in smaller steps
Expand Down

0 comments on commit 6396571

Please sign in to comment.