Closed ffdead closed 1 year ago
Seems like useThree viewport updates before the scroll-rig camera on resize, and can get out of sync.
A temporary workaround is always to recalculate the viewport when using it:
const viewport = useThree((s) => s.viewport).getCurrentViewport()
Seems like useThree viewport updates before the scroll-rig camera on resize, and can get out of sync.
A temporary workaround is always to recalculate the viewport when using it:
const viewport = useThree((s) => s.viewport).getCurrentViewport()