I've noticed you switched to pointer-events in some modules. DragControls in r120 does not work properly for some reason in r120. No click-events are fired on renderer.domElement.
DragControls does not use Pointer Events yet. Are you using the controls in combination with another one?
I'm using DragControls and OrbitControls inside a project for 2 years now and recognized this "bug" after the update to r120. When I switch to r119 everything works fine.
Do you mind demonstrating the issue with a live example? In this one, the integration of both controls seems to work. And the click event is triggered:
just add for example
renderer.domElement.addEventListener('mousedown', () => console.log('down'))
so maybe the three.js EventDispatcher is overwriting some behaviour?
OrbitControls calls preventDefault() on pointer down and move events. This automatically cancels the respective mouse events. You can only fix this by using pointerdown.
sure I can fix after initialization, but the DragControls module internally uses the mouse-events. maybe something to fix in the nearer future.
Definitely. Although you should always disable OrbitControls when DragControls becomes active. In this case, OrbitControls will not cancel its pointer events and thus DragControls should not be affected.
To use the hover-event as helper to enable/disable the OrbitControls does the trick. Thanks a lot.
Most helpful comment
To use the hover-event as helper to enable/disable the OrbitControls does the trick. Thanks a lot.