Skip to content
Permalink
Browse files

Fixed mousewheel zoom making it consistent to qgis zoom (scroll up = …

…zoom in)
  • Loading branch information
Marco Bernasocchi authored and pka committed Nov 2, 2010
1 parent a75f9d2 commit 31f2ab7da15db0bd9d9499ba4f59b1322e8a0ac0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plugins/globe/qgsosgviewer.cpp
@@ -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.
You can’t perform that action at this time.