diff --git a/kwin/src/qml/CameraController.qml b/kwin/src/qml/CameraController.qml index 15b5276..5cf3853 100644 --- a/kwin/src/qml/CameraController.qml +++ b/kwin/src/qml/CameraController.qml @@ -67,18 +67,14 @@ Item { onDisplayResolutionChanged: updateFOV(); onDiagonalFOVChanged: updateFOV(); - - FrameAnimation { - running: true - onTriggered: { - if (root.imuRotations && root.imuRotations.length > 0) { - updateCamera(applyLookAhead( - root.imuRotations[0], - root.imuRotations[1], - root.imuTimeElapsedMs, - lookAheadMS(root.imuTimestamp, root.lookAheadConfig, -1) - )); - } + onImuRotationsChanged: { + if (root.imuRotations && root.imuRotations.length > 0) { + updateCamera(applyLookAhead( + root.imuRotations[0], + root.imuRotations[1], + root.imuTimeElapsedMs, + lookAheadMS(root.imuTimestamp, root.lookAheadConfig, -1) + )); } } }