You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heey! I just spend too much time trying to figure this out, but cannot really find a solution.. I animate camera position y, sync it with scroll actually so in my useFrame, I run camera.position.y = -window.scrollY * ratio (which just turns the scrollY to threejs units) ... The problem is that if I resize, all things in the scene get kinda zoom, scaled more of, and more I resize, camera position y is increasing, even though window.scrollY is constant. If camera.position.y = 0, which means I'm at top of my page, this is not happening, only if camera position y is bigger than zero .. Would you have any idea why is this happening? Hopefully I'm being clear :) Seems like calling updateProjectionMatrix or gl.setSize would fix this, but no
The text was updated successfully, but these errors were encountered:
Heey! I just spend too much time trying to figure this out, but cannot really find a solution.. I animate camera position y, sync it with scroll actually so in my useFrame, I run camera.position.y = -window.scrollY * ratio (which just turns the scrollY to threejs units) ... The problem is that if I resize, all things in the scene get kinda zoom, scaled more of, and more I resize, camera position y is increasing, even though window.scrollY is constant. If camera.position.y = 0, which means I'm at top of my page, this is not happening, only if camera position y is bigger than zero .. Would you have any idea why is this happening? Hopefully I'm being clear :) Seems like calling updateProjectionMatrix or gl.setSize would fix this, but no
The text was updated successfully, but these errors were encountered: