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

Is there a method that is triggered when the user clicks the side panel, such as clicking the fullscreen button? #1479

Open
KKJava1 opened this issue Nov 4, 2024 · 1 comment

Comments

@KKJava1
Copy link

KKJava1 commented Nov 4, 2024

Describe your problem

I need a callback method that is triggered after clicking the fullscreen button, or a callback method when clicking the side panel.

Online demo URL

No response

Photo Sphere Viewer version

5.11.1

Plugins loaded

No response

Additional context

Is there a method that is triggered when the user clicks the side panel, such as clicking the fullscreen button?

@mistic100
Copy link
Owner

mistic100 commented Nov 5, 2024

There are no specific events but you can subscribe yourself.

document.querySelector('.psv-panel-content').addEventListener('click', () => {
 ....
});

document.querySelector('.psv-fullscreen-button').addEventListener('click', () => {
 ....
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants