Gui: Gesture: fix tilt angle sign

This commit is contained in:
DeepSOIC
2018-11-28 13:53:40 +03:00
committed by Yorik van Havre
parent 46d0d4c80c
commit b09fb97ad8
2 changed files with 3 additions and 3 deletions

View File

@@ -84,8 +84,8 @@ SoGesturePinchEvent::SoGesturePinchEvent(QPinchGesture* qpinch, QWidget *widget)
deltaZoom = qpinch->scaleFactor();
totalZoom = qpinch->totalScaleFactor();
deltaAngle = unbranchAngle((qpinch->rotationAngle()-qpinch->lastRotationAngle()) / 180.0 * M_PI);
totalAngle = qpinch->totalRotationAngle() / 180 * M_PI;
deltaAngle = -unbranchAngle((qpinch->rotationAngle()-qpinch->lastRotationAngle()) / 180.0 * M_PI);
totalAngle = -qpinch->totalRotationAngle() / 180 * M_PI;
state = SbGestureState(qpinch->state());