diff --git a/examples/js/vr/DaydreamController.js b/examples/js/vr/DaydreamController.js index cbed0b63c2fa7d5cbecc78d4fe3471b7cb5cb31a..c225f4931d96a01c5206523764f5611068ec87d7 100644 --- a/examples/js/vr/DaydreamController.js +++ b/examples/js/vr/DaydreamController.js @@ -66,7 +66,7 @@ THREE.DaydreamController = function () { // angular velocity - if ( pose.angularVelocity !== null || ! angularVelocity.equals( pose.angularVelocity ) ) { + if ( pose.angularVelocity !== null && ! angularVelocity.equals( pose.angularVelocity ) ) { angularVelocity.fromArray( pose.angularVelocity ); scope.dispatchEvent( { type: 'angularvelocitychanged', angularVelocity: angularVelocity } ); diff --git a/examples/webvr_daydream.html b/examples/webvr_daydream.html index c8aad669e69f5cae9e41af76885306dda3f20290..13171bd488a35ca8bb7974584544cc9a151bff73 100644 --- a/examples/webvr_daydream.html +++ b/examples/webvr_daydream.html @@ -4,8 +4,8 @@ three.js webvr - daydream - - + +