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

How to enable double tap/click & pinch events to zoom in & out #8

Open
SMA-cgn opened this issue May 25, 2024 · 1 comment
Open

How to enable double tap/click & pinch events to zoom in & out #8

SMA-cgn opened this issue May 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@SMA-cgn
Copy link

SMA-cgn commented May 25, 2024

Hi,

I want to enable double tap/click & pinch events on the HTML overlay to zoom in and out.

Is this possible? Is there any example?

Thanks a lot!!!

@iangilman
Copy link
Member

Pinch events should already be working. Are you saying your overlays are blocking them?

To enable double click to zoom in, you can include this in your OSD options:

gestureSettingsMouse: {
  dblClickToZoom: true
}

Likewise for touch:

gestureSettingsTouch: {
  dblClickToZoom: true
}

@iangilman iangilman added the question Further information is requested label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants