Commit 2cba2a60 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - Our manipulator now prohibits right mousebutton drags. The original...

[CHANGE] - Our manipulator now prohibits right mousebutton drags. The original osgGA::TrackbaclManipulator uses it to implement some strange zoom by moving the camera which is reimplemented in our manipulator. By not forwarding these drags, we might avoid strange behaviour while dragging ROIS.
parent 9726a9ec
......@@ -117,6 +117,12 @@ bool WGEZoomTrackballManipulator::handle( const osgGA::GUIEventAdapter& ea, osgG
return zoom( ea, us );
// NOTE: we need to ignore the right mouse-button drag! This manipulates the underlying Trackball Manipulator while, at the same time, is
// used for moving ROIS! Zooming is done using Scroll Wheel or +/- keys.
else if ( ( ea.getEventType() == osgGA::GUIEventAdapter::DRAG ) && ( ea.getButtonMask() == osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON ) )
return true;
return TrackballManipulator::handle( ea, us );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment