Removed generation of scroll event on the X11 button release event as X11 was generating both a pair of press/release events for a single scroll when movement.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14257 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
be13c2202d
commit
d9a6491a43
@ -1476,11 +1476,13 @@ bool GraphicsWindowX11::checkEvents()
|
|||||||
|
|
||||||
if( ev.xbutton.button == Button4 )
|
if( ev.xbutton.button == Button4 )
|
||||||
{
|
{
|
||||||
getEventQueue()->mouseScroll(osgGA::GUIEventAdapter::SCROLL_UP, eventTime);
|
//ignore scroll release as X11 is generating button press and release pairs for scroll wheel motion and we only need only event for each scroll action
|
||||||
|
//getEventQueue()->mouseScroll(osgGA::GUIEventAdapter::SCROLL_UP, eventTime);
|
||||||
}
|
}
|
||||||
else if( ev.xbutton.button == Button5)
|
else if( ev.xbutton.button == Button5)
|
||||||
{
|
{
|
||||||
getEventQueue()->mouseScroll(osgGA::GUIEventAdapter::SCROLL_DOWN, eventTime);
|
//ignore scroll release as X11 is generating button press and release pairs for scroll wheel motion and we only need only event for each scroll action
|
||||||
|
//getEventQueue()->mouseScroll(osgGA::GUIEventAdapter::SCROLL_DOWN, eventTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user