[osg-users] CompositeViewer Bug with Scroll Events
Robert Osfield
robert.osfield at gmail.com
Wed Apr 4 01:03:03 PDT 2018
Thanks Daniel, fix merged and will be part of 3.6.0 :-)
On 3 April 2018 at 16:16, Daniel Emminizer, Code 5773
<dan.emminizer at nrl.navy.mil> wrote:
> 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
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list