From 8ba5f73c1af2844d7655b1179b965caa57ec9b18 Mon Sep 17 00:00:00 2001 From: DeepSOIC Date: Sat, 4 Apr 2015 01:33:01 +0300 Subject: [PATCH] GestureNav: bug fix (gesture lockup in sketcher) Navigation by gestures didn't work after double-clicking a constraint in sketcher to edit a value. This was probably caused by the last mouse button release event not reaching the viewer. --- src/Gui/GestureNavigationStyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/GestureNavigationStyle.cpp b/src/Gui/GestureNavigationStyle.cpp index 5317e9445..3acf62886 100644 --- a/src/Gui/GestureNavigationStyle.cpp +++ b/src/Gui/GestureNavigationStyle.cpp @@ -442,7 +442,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) } //gesture start - if (evIsGesture && !this->button1down && !this->button2down){//ignore gestures when mouse buttons are down. + if (evIsGesture && /*!this->button1down &&*/ !this->button2down){//ignore gestures when mouse buttons are down. Button1down check was disabled because of wrong state after doubleclick on sketcher constraint to edit datum const SoGestureEvent* gesture = static_cast(ev); if (gesture->state == SoGestureEvent::SbGSStart || gesture->state == SoGestureEvent::SbGSUpdate) {//even if we didn't get a start, assume the first update is a start (sort-of fail-safe).