-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Added functionality for zoom in\out by sliding the wheel #52
Added functionality for zoom in\out by sliding the wheel #52
Conversation
…to wheel event the determine the direction of the scrolling, and by that decide if zooming in or out.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/image/kzjd59b8q |
Codecov Report
@@ Coverage Diff @@
## master #52 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 5 5
Lines 206 220 +14
Branches 54 57 +3
=========================================
+ Hits 206 220 +14
Continue to review full report at Codecov.
|
@shaodahong |
…port same wheel `deltaY` on every change
Thanks. |
Listening to wheel event the determine the direction of the scrolling, and by that decide if zooming in or out.
This PR was opened due to this Feature Request in Ant Design repository's issues:
ant-design/ant-design#28415
After this PR will be merged and a new version will be released I'll open a PR for Ant Design to integrate this new feature.