Skip to content
Permalink
Browse files

Don't zoom with mouse wheel if keyboard modifiers pressed

  • Loading branch information
Borys Jurgiel
Borys Jurgiel committed Mar 30, 2013
1 parent 50c3303 commit 8299001afefc2818673b6293f539816b7055cf56
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/gui/qgsmapcanvas.cpp
@@ -37,6 +37,7 @@ email : sherman at mrcc.com
#include <QWheelEvent>

#include "qgis.h"
#include "qgsapplication.h"
#include "qgslogger.h"
#include "qgsmapcanvas.h"
#include "qgsmapcanvasmap.h"
@@ -1093,6 +1094,12 @@ void QgsMapCanvas::wheelEvent( QWheelEvent *e )
return;
}

if ( QgsApplication::keyboardModifiers() )
{
// leave the wheel for map tools if any modifier pressed
return;
}

switch ( mWheelAction )
{
case WheelZoom:

0 comments on commit 8299001

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