modules/datguivr/index.js
//that interaction should be cancelled. Especially problematic with e.g. pressing 'reattach' when the parent is closed.
that interaction should be cancelled.
that interaction should be cancelled .
function checkCancelledInteractions( interactions, hitscanObjects ) {
    ['press', 'grip', 'hover'].forEach( interactionName => {
      const interaction = interactions[interactionName];
      if (interaction && hitscanObjects.indexOf(interaction.hitVolume) < 0) {
        interactions[interactionName] = undefined; 
        interaction.update( [] );
      } 
    });
  }
function checkCancelledInteractions ( interactions , hitscanObjects ) { [ 'press' , 'grip' , 'hover' ] . forEach ( interactionName => { const interaction = interactions [ interactionName ] ; if ( interaction && hitscanObjects . indexOf ( interaction . hitVolume ) < 0 ) { interactions [ interactionName ] = undefined ; interaction . update ( [ ] ) ; } } ) ; }
that interaction should be cancelled.
that interaction should be cancelled .
//only be polite to inform the interaction as well; update with empty inputObjects arg should do the trick.