-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add mouse wheel support in NumericTextBox #881
Comments
Everyone interested in this feature, please cast your vote for it in our UserVoice portal: |
I already implemented this feature in a local copy of the source code. I you are interested to see the changes I did, let me know... |
Closing the issue to avoid duplication with UserVoice. |
I found this feature is now implemented in version 4.2.0, which is great because is saves me from maintaining my own version of this package! Thanks. |
@JaapMosselman Thank you for reporting this problem. It seems to be caused by the fact that there are no cross-browser consistent values for the MouseWheel event data deltaY property. We will do our best to resolve the problem and provide a behavior, consistent between major browsers as soon as possible. |
@dtopalov Yeah, consistency is a problem. So the most basic solution is not using the size of deltaY at all. Just use the direction to supply a step of 1 or -1. I am using that in my own version already more than a year with lots of users. Works just fine. I would not spend time on using the size of deltaY. |
@JaapMosselman Indeed, the most straight-forward approach is to take the direction only, but we wanted to introduce a solution that will also keep the scroll rate (difference is most significant on touch-input devices like touch pads). Thus we had to refactor, and introduce a cross-browser solution that will be available in the latest dev build of the Inputs package. |
Great. |
Released in 4.2.1 |
Is there a way to disable this feature? I can't find anything in the API |
No, there is currently no flag to disable the mousewheel behavior. Please open a new feature request to avoid spamming this thread. |
I'm submitting a...
Current behavior
When the NumericTextBox is focused you can use arrow up and down to increment or decrement. But the mouse wheel does not work. The date-inputs supports this, so now there is no consistent user input experience.
Expected behavior
Scrolling with mouse wheel should increment or decrement just like the arrow up and down key.
Minimal reproduction of the problem with instructions
Standard demo example.
What is the motivation or use case for changing the behavior?
Consistent user input experience.
The text was updated successfully, but these errors were encountered: