Skip to content
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

Interaction between the Info Panel and the Gallery #1383

Closed
Rusachok opened this issue Jul 19, 2024 · 2 comments
Closed

Interaction between the Info Panel and the Gallery #1383

Rusachok opened this issue Jul 19, 2024 · 2 comments
Labels
awaiting answer Additional information is required. Will be closed after 14 days. question

Comments

@Rusachok
Copy link

Describe the bug

I would like to have interaction between the Info Panel and the Gallery.
Similar to how it is done in
#1374

My gallery is open when loading and does not close when navigating.
When I click on info, the panel on the right opens, the gallery is hidden. But when I close the panel, the gallery does not appear again. The user must search for where they have gone.

Online demo URL

https://vi-tour.ru/s/eyclgqhj/

Photo Sphere Viewer version

5.8.2

Plugins loaded

No response

OS & browser

Win10, Chrome

Additional context

No response

@Rusachok Rusachok added the bug label Jul 19, 2024
@mistic100
Copy link
Owner

use events and methods

viewer.addEventListerner('hide-panel', () => gallery.show());

@mistic100 mistic100 added awaiting answer Additional information is required. Will be closed after 14 days. question and removed bug labels Jul 19, 2024
@Rusachok
Copy link
Author

Thanks!
It works:

viewer.addEventListener('hide-panel', ({ panelId }) => { virtualTour.gallery.show(); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting answer Additional information is required. Will be closed after 14 days. question
Projects
None yet
Development

No branches or pull requests

2 participants