Gui: Gesture: add option to disable tilt
On Qt5, using pinch will inevitably cause tilt. It's annoying, so it is disabled by default. In the future, it's best to introduce some kind of threshold to overcome for the tilt to be triggered.
This commit is contained in:
committed by
Yorik van Havre
parent
8ba6df2548
commit
47ae980fa2
@@ -922,6 +922,8 @@ void View3DInventorViewer::setNavigationType(Base::Type t)
|
||||
if (t.isBad())
|
||||
return;
|
||||
|
||||
this->winGestureTuneState = View3DInventorViewer::ewgtsNeedTuning; //triggers enable/disable rotation gesture when preferences change
|
||||
|
||||
if (this->navigation && this->navigation->getTypeId() == t)
|
||||
return; // nothing to do
|
||||
|
||||
|
||||
Reference in New Issue
Block a user