You have a good example of how to manage the mouse in DragControls.js
.
Having this, you could simply have a look over there and repeat it in your code:
You have a good example of how to manage the mouse in DragControls.js
.
Having this, you could simply have a look over there and repeat it in your code: