-
Notifications
You must be signed in to change notification settings - Fork 923
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
How to activate gyroscope onload on iPhone #44
Comments
Hi, You can use the public method var PSV = new PhotoSphereViewer({
container: 'psv',
panorama: 'pano.jpg',
onready: function() {
PSV.toggleDeviceOrientation();
}
}); It should work. :) |
Will this still work? It would not for me. It would be nice to have the ability to auto-load gyroscope and at the same time allow touch control |
I just tested it, it still works for me. Can you please copy/paste here the code you use? |
Hi Jeremy, The coding is great, I am probably missing something as Javascript is not my normal coding language. Would it be possible to get some help? I have 2 issues:
` <style> html, body { width: 100%; height: 100%; overflow: hidden; margin: 0; padding: 0; } #photosphere, section{ width: 100%; height: 100%; } .psv-button.custom-button { font-size: 22px; line-height: 20px; } </style> <script type="text/javascript">
|
Hello guys, It works not well when I use the method .toggleDeviceOrientation() in android device. I don't how to fix it. Any advice? |
I have this error when I try to start the gyro with onready |
Hello Guys,
how do we activate the Gyroscope onload, without touching the Gyro button in the nav bar?
greetings from south Germany
The text was updated successfully, but these errors were encountered: