Skip to content
Permalink
Browse files

[fix #18418] do not pursue when wheel event when delta = 0

  • Loading branch information
3nids committed Oct 15, 2018
1 parent 32d4bcc commit 6396571d565cb77d1e99ab160b474040bc61c56d
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmapcanvas.cpp
@@ -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

0 comments on commit 6396571

Please sign in to comment.
You can’t perform that action at this time.