When a scene does not display entirely on the page and you can scroll, the Raycaster stops working and is affected by the scrolling offset.
If you scroll to the side by 20 pixels down, you need to have 20 pixels below the object for the click to be recognized correctly by the Raycaster.
What is the solution to this problem?
I would greatly appreciate any help. Thank you!