diff --git a/src/Gui/NavigationStyle.cpp b/src/Gui/NavigationStyle.cpp index 883183fc1..34bec5184 100644 --- a/src/Gui/NavigationStyle.cpp +++ b/src/Gui/NavigationStyle.cpp @@ -715,8 +715,6 @@ void NavigationStyle::zoomByCursor(const SbVec2f & thispos, const SbVec2f & prev void NavigationStyle::doZoom(SoCamera* camera, SbBool forward, const SbVec2f& pos) { - if (this->button3down) - return; SbBool zoomAtCur = this->zoomAtCursor; if (zoomAtCur) { const SbViewportRegion & vp = viewer->getViewportRegion(); diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 391cc25bb..1b5ab3af0 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -74,6 +74,7 @@ # include # include # include +# include # include # include # include @@ -1033,6 +1034,14 @@ void View3DInventorViewer::selectAll() */ void View3DInventorViewer::processEvent(QEvent * event) { + // Bug #0000607: Some mices also support horizontal scrolling which however might + // lead to some unwanted zooming when pressing the MMB for panning. + // Thus, we filter out horizontal scrolling. + if (event->type() == QEvent::Wheel) { + QWheelEvent* we = static_cast(event); + if (we->orientation() == Qt::Horizontal) + return; + } if (event->type() == QEvent::KeyPress) { QKeyEvent* ke = static_cast(event); if (ke->matches(QKeySequence::SelectAll)) {