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

macOS trackpad pinch zoom on Safari is not working #229

Open
moklick opened this issue Jan 26, 2021 · 3 comments
Open

macOS trackpad pinch zoom on Safari is not working #229

moklick opened this issue Jan 26, 2021 · 3 comments
Assignees

Comments

@moklick
Copy link

moklick commented Jan 26, 2021

Hey!

I can not use pinch zoom on a macbook trackpad on Safari. The issue is reproducible with this example: https://observablehq.com/@d3/delaunay-find-zoom?collection=@d3/d3-zoom

It seems that Safari is not using event.ctrlKey + event.type === 'wheel' for identifying a pinch zoom but uses gesturestart, gesturechange and gestureend. Are you planing to implement listeners for these events or should we implement them on our own?

@Fil
Copy link
Member

Fil commented Jan 26, 2021

Thanks for the report. Yes, we would want to implement this — contributions are welcome.

@Fil Fil self-assigned this Jan 26, 2021
@moklick
Copy link
Author

moklick commented Jan 26, 2021

Thanks for the fast reply! I'm not sure if I can help here but I'll look into it.

@Richard-Mlynarik
Copy link

Looks like https://github.com/antimatter15/d3-pinch-zoom was an attempt at this.

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

No branches or pull requests

3 participants