THREE.Interactive
THREE.Interactive copied to clipboard
mouseup vs. mousedown selectivity
I'm adding listeners to objects in a loop like this:
ref.addEventListener('mousedown', this.fireClickStarting );
ref.addEventListener('mouseup', this.fireClickEnding );
interactionManager.add( ref )
'mousedown' activates correctly only when clicked object ref
but 'mouseup' activates everywhere to all clicks in whole scene
This worked correctly in previous THREE REV, so perhaps it is a THREE.js R165 interaction