We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: