Skip to content

Commit

Permalink
Consider initial device orientation for window mode pose tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcos committed Dec 25, 2019
1 parent 84a6c7c commit 19f66c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vendor/DeviceOrientationControls.js
Expand Up @@ -59,6 +59,8 @@ THREE.DeviceOrientationControls = function ( object ) {

this.connect = function () {

onScreenOrientationChangeEvent();

window.addEventListener( 'orientationchange', onScreenOrientationChangeEvent, false );
window.addEventListener( 'deviceorientation', onDeviceOrientationChangeEvent, false );

Expand Down

0 comments on commit 19f66c1

Please sign in to comment.