Hello everybody,
I'm currently trying to get a mesh by clicking on the canvas. So far, it works really great but I still have a problem:
On click, the mesh gets highlighted. Fine but when I drag the mouse on the canvas in order to move the cam, when I release the button of the mouse, a click event is triggered and the mesh beneath it get selected.
I tried to add an event listener on 'mouseup' to stop propagation to the click event but it seems BJS already "intercepts" this event so it is never triggered. I created a codepen to illustrate :
https://codepen.io/3dos/pen/mLEEdq