I want to embed the demo of threejs into a div, and then change the size of the renderer to put it in my other pages. It turns out that after the size of the renderer has changed, the ray pickup seems to have gone wrong.
was originally renderer.setSize (window.innerWidth,window.innerHeight); click events are all normal
later I set renderer.setSize (window.innerWidth/2,window.innerHeight/2) like this, and found that renderer has become smaller, and the objects in it have shrunk accordingly, but there is something wrong with the click event, and the actual position coordinates of the object do not seem to have changed. How should I deal with this?