-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Canvas disappears on IOS Safari #37
Comments
Hi @2Senn - are you still having issues? |
Hey @ffdead nah I fixed it. Basically the problem was with the perspective camera which I added in an incorrect way. as for on IOS I used the syncTouch prop from Lenis and the issue was resolved. But I did want to ask if there is a way to use the Loader component from drei with the scroll rig setup. It does not seem to work for me atm. Or atleast the useProgress hook Thanks! |
Great! Yes, to keep the scroll scenes active on mobile, using
|
Where do I place the Loader component? I believe it should be outside the canvas right? so with next.js 14 (app dir) it would be in my providers file under the globalcanvas component ? or somewhere else? |
I am rendering a sphere with some texture to fill the landing page. When scrolling on ios safari the page becomes black (which is the body bgcolor) scrolling a few more times brings it back. I am thinking it is because of the resize that is happening in safari with the search bar. Anyone know how to fix this?
on Next.js 14 (App dir)
I have GlobalCanvas and smoothscrollbar in my layout.
This is how I call my sphere:
Edit: Added a codesandbox:
https://codesandbox.io/p/sandbox/hello-scrollscene-forked-tqdvwr
if you try resizing with devtools the thing flickers :/ I am relatively new to the three.js ecosystem and so I am just trying to recreate alot of things to learn. Please help point my mistakes out to me
Edit2: seems like the flickering was fixed on web (resizing with devtools doesnt make it flicker anymore) when I removed the perspective camera component and just used the orthographic={false} prop. However, issue persists on IOS when scrolling.
The text was updated successfully, but these errors were encountered: