Skip to content

Commit

Permalink
Fixed mousewheel zoom making it consistent to qgis zoom (scroll up = …
Browse files Browse the repository at this point in the history
…zoom in)
  • Loading branch information
Marco Bernasocchi authored and pka committed Jul 5, 2011
1 parent a75f9d2 commit 31f2ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/globe/qgsosgviewer.cpp
Expand Up @@ -79,5 +79,5 @@ void QgsGLWidgetAdapter::mouseMoveEvent( QMouseEvent* event )

void QgsGLWidgetAdapter::wheelEvent(QWheelEvent *event)
{
_gw->getEventQueue()->mouseScroll((event->delta()>0) ? osgGA::GUIEventAdapter::SCROLL_UP : osgGA::GUIEventAdapter::SCROLL_DOWN);
_gw->getEventQueue()->mouseScroll((event->delta()>0) ? osgGA::GUIEventAdapter::SCROLL_DOWN : osgGA::GUIEventAdapter::SCROLL_UP);
}

0 comments on commit 31f2ab7

Please sign in to comment.