Issue with mouse events when updating from r119.1 to r120.1

Hey, when I update from r119.1 to r120.1, the mousedown and mouseup event attached to renderer.domElement arent working anymore. Im using OrbitControls, could it be possible that its preventing the event?

I have a working version and after I do npm i three@latest, it doesnt work anymore

1 Like

This is because of a change in r120 which is highlighted in the migration guide:

OrbitControls as well as other controls were moved to the Pointer Events API. In your case, you have to register your event listeners to pointerdown and pointerup events instead.

The reason behind this is that OrbitControls calls preventDefault() on Pointer Events in certain cases which automatically cancels the respective mouse events.