-
-
Notifications
You must be signed in to change notification settings - Fork 702
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
Can't zoom page on mobile (outside viewer) #783
Comments
How is this a problem ? I don't understand why it would zoom if you do not interact with the viewer. |
If i try to pinch to zoom in other webpage area it does not zoom as default behavior to a browser when the library is loaded. Below a screenshot that shows that in red areas i can't pinch to zoom the webpage with Chrome on iOS. |
Absolutely not the same problem, the forementionned issue is about not being able to zoom on the viewer. Did you try to only disable the viewer ? (comment the Viewer instanciation but leave everything else as it). If it stil does not work then it is not a problem with PSV. Perhaps you have a
|
If i remove the library the pinch to zoom works well, so i think this is a problem where the library catch the zoom event of all of the page instead of only the specific area. |
Thank you for the exact test case, the fix will be released soon. |
This feature/bug fix has been released in version 4.8.0. |
Hello.
I'm using the latest version of library.
This is my js code:
const viewer = new PhotoSphereViewer.Viewer({ container: document.querySelector('#wall_viewer'), panorama: 'images/IMG_20221113_180732_00_merged.jpg', loadingTxt: 'Carico...', autorotateDelay: 3000, autorotateIdle: true, navbar: ['zoom'], });
And my html code:
<div id="wall_viewer" style="width: 100vw; height: 50vh;"></div>
My problem is that when a user try to pinch (zoom) on a mobile device, zoom does not work. Only works inside the viewer but not in all of the page.
How can be fix this?
Thanks
The text was updated successfully, but these errors were encountered: