-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
feat: support mouse wheel #597
feat: support mouse wheel #597
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #597 +/- ##
==========================================
+ Coverage 94.34% 94.53% +0.19%
==========================================
Files 6 6
Lines 283 293 +10
Branches 72 75 +3
==========================================
+ Hits 267 277 +10
Misses 16 16
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
9da92e4
to
27cc6a0
Compare
27cc6a0
to
b18ad09
Compare
b18ad09
to
223858a
Compare
Screencast.from.28-10-23.14.26.53.webmI've pushed fix to prevent page scrolling while changing input value with wheel. |
Adds Mouse Wheel support to change value.
Mouse wheel up - increment, [SHIFT] +mouse wheel up - increment by 10 * step,
Mouse wheel down - decrement, [SHIFT] +mouse wheel down - decrement by 10 * step
note: moving mouse wheel up raises wheel event with negative deltaY (just write addEventListener('wheel', console.log) in dev console to check). Scrolling with touchbar is inverted (we should "touch" page and drag it to top to scroll bottom).
I've implemented the same behavior as DevExpress library has https://js.devexpress.com/React/Demos/WidgetsGallery/Demo/NumberBox/Overview/MaterialBlueLight/