Gui: Fix Blender and Revit navigation issues with shift key in sketcher

This commit is contained in:
Bas Ruigrok
2024-12-04 21:49:15 +01:00
committed by Chris Hennes
parent 1212c55e38
commit 2942cfffbc
2 changed files with 9 additions and 4 deletions

View File

@@ -272,12 +272,12 @@ SbBool RevitNavigationStyle::processSoEvent(const SoEvent * const ev)
break;
default:
// Reset mode to SELECTION when button 3 is released
// Reset mode to IDLE when button 3 is released
// This stops the DRAGGING when button 3 is released but SHIFT is still pressed
// This stops the ZOOMING when button 3 is released but CTRL is still pressed
if ((curmode == NavigationStyle::DRAGGING || curmode == NavigationStyle::ZOOMING)
&& !this->button3down) {
newmode = NavigationStyle::SELECTION;
newmode = NavigationStyle::IDLE;
}
break;
}