Skip to content
Permalink
Browse files
[FEATURE] Allow navigating back/forward through canvas view history
with back/forward mouse buttons
  • Loading branch information
nyalldawson committed Mar 17, 2017
1 parent fa22fab commit 1a50352cf758c0d9698b33434698371c2a8ee4e1
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/gui/qgsmapcanvas.cpp
@@ -1288,6 +1288,16 @@ void QgsMapCanvas::mouseReleaseEvent( QMouseEvent *e )
mCanvasProperties->panSelectorDown = false;
panActionEnd( mCanvasProperties->mouseLastXY );
}
else if ( e->button() == Qt::BackButton )
{
zoomToPreviousExtent();
return;
}
else if ( e->button() == Qt::ForwardButton )
{
zoomToNextExtent();
return;
}
else
{
if ( mZoomDragging && e->button() == Qt::LeftButton )

0 comments on commit 1a50352

Please sign in to comment.