It makes things simplier, if to add the event listener to the canvas
(renderer.domElement) and use offsetX
and offsetY
:
https://jsfiddle.net/zdy1hc9z/4/
https://jsfiddle.net/zdy1hc9z/5/
3 Likes
It makes things simplier, if to add the event listener to the canvas
(renderer.domElement) and use offsetX
and offsetY
:
https://jsfiddle.net/zdy1hc9z/4/
https://jsfiddle.net/zdy1hc9z/5/