Hey, when I update from r119.1 to r120.1, the
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
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
pointerup events instead.
The reason behind this is that
preventDefault() on Pointer Events in certain cases which automatically cancels the respective mouse events.