[osg-users] CompositeViewer Bug with Scroll Events

Daniel Emminizer, Code 5773 dan.emminizer at nrl.navy.mil
Tue Apr 3 08:16:09 PDT 2018


Hello,

I've been working on testing the 3.6.0-rc3 OpenSceneGraph in an application that was previously using 3.4.1.  I found what I think is a bug with the GUIEventAdapter::SCROLL handling when using a CompositeViewer.  I also come with a potential fix.

The symptom I'm seeing is that when I use CompositeViewer, I'm getting a SCROLL event in my GUIEventHandler, one for each view.  In 3.4.1 I was only getting it for the view under the mouse, same as clicks and other mouse operations.

Looking at old 3.4.1 CompositeViewer, the SCROLL event is being sent by default to only the focus view.

In the 3.6 CompositeViewer, the SCROLL event defaults to EVENT_FOR_ALL_VIEWS.  I think the focused view for SCROLL seems more correct.


I am submitting a PR on the 3.6 branch for this.  I'm happy to redo the PR if I messed something up.  The PR is at: 

https://github.com/openscenegraph/OpenSceneGraph/pull/518


Thanks,

 - Dan



More information about the osg-users mailing list