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

Woooow that zooooom (MacBook Trackpad) #2

Open
Martin-Pitt opened this issue Feb 15, 2017 · 1 comment
Open

Woooow that zooooom (MacBook Trackpad) #2

Martin-Pitt opened this issue Feb 15, 2017 · 1 comment

Comments

@Martin-Pitt
Copy link

The zoom is super fast on the trackpad.

I'd recommend borrowing the work from @jakearchibald's implementation of pan-zoom from SVGOMG:
https://github.com/jakearchibald/svgomg/blob/master/src/js/page/ui/pan-zoom.js

Another useful source is: https://www.npmjs.com/package/normalize-wheel

@jakearchibald
Copy link

I started building a web component that does this, and also supports native panning. https://github.com/jakearchibald/pinch-zoomer/blob/master/index.js - haven't quite finished it yet, but the hard parts (the maths) are all there.

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

No branches or pull requests

2 participants