This is a migrated thread and some comments may be shown as answers.

Increment on mouse wheel event

2 Answers 701 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Tudor
Top achievements
Rank 1
Tudor asked on 01 Apr 2020, 04:03 PM

 

I presume the component is handling the increment of the input value when the mouse wheel is turned. 

Is there a way to stop the incrementation or a way to override the handler for this event?

2 Answers, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 03 Apr 2020, 08:49 AM

Hi Tudor,

Indeed, at the moment there isn't a built-in feature that allows to disable/enable the mouse scroll functionality for the NumericTextBox component. Please support the development of such feature by voting for the following feature request item of our public Feedback Portal:

https://feedback.telerik.com/kendo-angular-ui/1459512-create-a-property-to-enable-or-disable-mouse-wheel-support-on-numeric-textbox-881

That will help us to plan accordingly our future development plans based on the provided customer demand. Thank you.

What could be done as a workaround until the feature is released is to use some custom JavaScript in order to handle the generic (wheel) event of the input element used by the NumericTextBox and stop its propagation. Please check the following example demonstrating such approach:

https://stackblitz.com/edit/angular-5lbaf4?file=app/app.component.ts

I hope the provided information helps. Please let me know in case further assistance is required for this or any other Kendo UI for Angular related topic.

 

Regards,
Svetlin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Tudor
Top achievements
Rank 1
answered on 06 Apr 2020, 03:44 PM

Hi Svetlin,

Thank you for your reply it was very helpful!

Tags
NumericTextBox
Asked by
Tudor
Top achievements
Rank 1
Answers by
Svet
Telerik team
Tudor
Top achievements
Rank 1
Share this question
or