Browse Source

the right event type

Raanan Weber 5 years ago
parent
commit
99d13e5693
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.ts

+ 1 - 1
src/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.ts

@@ -69,7 +69,7 @@ export class ArcRotateCameraVRDeviceOrientationInput implements ICameraInput<Arc
 
         if (hostWindow) {
             // check iOS 13+ support
-            if (typeof(DeviceMotionEvent) !== "undefined" && typeof (<any>DeviceOrientationEvent).requestPermission === 'function') {
+            if (typeof(DeviceOrientationEvent) !== "undefined" && typeof (<any>DeviceOrientationEvent).requestPermission === 'function') {
                 (<any>DeviceOrientationEvent).requestPermission()
                     .then((response: string) => {
                         if (response === 'granted') {