Skip to content

Commit

Permalink
WebXRManager: Clean up. (#24015)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored May 6, 2022
1 parent 65ffdea commit 0616013
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/webxr/WebXRManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class WebXRManager extends EventDispatcher {

const controller = inputSourcesMap.get( event.inputSource );

if ( controller ) {
if ( controller !== undefined ) {

controller.dispatchEvent( { type: event.type, data: event.inputSource } );

Expand All @@ -133,7 +133,7 @@ class WebXRManager extends EventDispatcher {

inputSourcesMap.forEach( function ( controller, inputSource ) {

if ( controller ) {
if ( controller !== undefined ) {

controller.disconnect( inputSource );

Expand Down

0 comments on commit 0616013

Please sign in to comment.