Fixed TabPlaneDragger's handling of pressing the right mouse button whilst holding the left mouse button down, then releasing hte left mouse button.

This commit is contained in:
Robert Osfield 2016-07-06 19:45:02 +01:00
parent 74f1cc1ec4
commit a898f2a7e1

View File

@ -218,8 +218,6 @@ TabPlaneDragger::~TabPlaneDragger()
bool TabPlaneDragger::handle(const PointerInfo& pointer, const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa) bool TabPlaneDragger::handle(const PointerInfo& pointer, const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
{ {
if (ea.getButtonMask() & osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON) return false;
// Check if the dragger node is in the nodepath. // Check if the dragger node is in the nodepath.
if (!pointer.contains(this)) return false; if (!pointer.contains(this)) return false;