14islands / r3f-scroll-rig

A react-three-fiber scroll-rig for syncing 3D meshes and DOM elements.
MIT License
698 stars 34 forks source link

ScrollScene not in viewport still catching mouse events #25

Closed ffdead closed 1 year ago

ffdead commented 1 year ago

If a ScrollScene is outside the viewport when the page loads - the scene is never moved to it's correct location. Instead they sit as invisble meshes at 0,0,0

Since threejs still triggers raycast on invisible meshes - these ScrollScenes will trigger pointer events which can cause weird issues.

ffdead commented 1 year ago

Fixed by aeee7a2