Skip to content

Commit

Permalink
onClick event on mouse release
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jul 5, 2011
1 parent b0f3d4e commit 5906eef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plugins/globe/globe_plugin.cpp
Expand Up @@ -687,6 +687,14 @@ bool NavigationControl::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActi
}
break;
case osgGA::GUIEventAdapter::RELEASE:
for( ControlEventHandlerList::const_iterator i = _eventHandlers.begin(); i != _eventHandlers.end(); ++i )
{
NavigationControlHandler* handler = dynamic_cast<NavigationControlHandler*>( i->get() );
if( handler )
{
handler->onClick( this, ea.getButtonMask(), ea, aa );
}
}
_mouse_down_event = NULL;
break;
}
Expand All @@ -699,7 +707,6 @@ bool NavigationControl::handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActi
if( handler )
{
handler->onMouseDown( this, ea.getButtonMask() );
handler->onClick( this, ea.getButtonMask(), ea, aa );
}
}
}
Expand Down

0 comments on commit 5906eef

Please sign in to comment.