Closed takahirox closed 5 years ago
I don't have platform where I can debug on iOS. I need help.
I can reproduce this problem even on iOS + Chrome. Maybe (mobile?) iOS specific issue regardless of browsers.
I can reproduce this problem on iPad + Safari.
I tested in BrowserStack (iPad with Safari), got this error when clicking:
TypeError: document.exitFullscreen is not a function. (In 'document.exitFullscreen()', 'document.exitFullscreen' is undefined)(anonymous function) @ immersive-custom-elements.js:49600
here's the click handler code that is breaking:
if (document.fullscreenElement === null) {
canvas.requestFullscreen();
} else {
document.exitFullscreen();
}
I think all the fullscreen things need webkit
prefix or a polyfill
Thanks for the report and solution! I'll try.
With #75, I think it works on iPad + Safari. (I don't have iPad at the office so haven't tried yet tho.)
But it still doesn't work on my iPod touch + Safari/Chrome. According to this iPhone doesn't seem to support it.
So we may need to wait for them start to support. And I'll remove "Fullscreen" button for iPhone in another PR.
@joshmarinacci Let me remove this issue from v0.2.0 milestone. I don't think we can fix from our side.
Yes, I recall only iPad fullscreen works, not iPhone; which means it is clearly an intentional decision on Apple's part. I'd call this one fixed if #75 is merged
Screenshot of iPad + Safari. It enters fullscreen mode but image (dom element) isn't resized.
iPad + Chrome doesn't seem to support Fullscreen API.
The results are the same as the screenfull.js demo so probably these behaviors are the intentional. So closing this issue.
Out of curiosity, have you tried
Who are "they" in this case? screenfull.js?
Ops I used <model-viewer>
without escaping the tags and it was just hidden :D.
I mean if modelviewer has the same issues on ipad/iphone with the fullscreen or they have another solution
OK, let me try at home tonight. I don't have iPad at the office.
From #60
On iOS (my iPod touch) + Safari, \<img-360> can't enter fullscreen mode. I haven't checked any console errors yet.