Skip to content

Commit

Permalink
Fix wheel events in map canvas are not accepted even after
Browse files Browse the repository at this point in the history
a zoom actually occurs, causing the event to pass on to underlying
widgets (e.g scroll areas)
  • Loading branch information
nyalldawson committed Oct 16, 2017
1 parent 6e40b88 commit 0002168
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -1522,6 +1522,7 @@ void QgsMapCanvas::wheelEvent( QWheelEvent *e )
mousePos.y() + ( ( oldCenter.y() - mousePos.y() ) * signedWheelFactor ) );

zoomByFactor( signedWheelFactor, &newCenter );
e->accept();
}

void QgsMapCanvas::setWheelFactor( double factor )
Expand Down

1 comment on commit 0002168

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Good find.

Please sign in to comment.