jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput Deactivate Spinning on mousewheel Reply To: Deactivate Spinning on mousewheel

Deactivate Spinning on mousewheel #48703

Marc
Participant

Thanks Damien for the tip. I think we will use that for the DateTimeInput. This issue is particularly bad when the widget is inside a scrollable panel since both the panel and the input respond to the widget. It appears that the input only receives the mousewheel event when it has focus and the wheel is scrolled while the cursor is over the input. Since the scroll event also moves the panel so that the cursor is no longer over the input field, the input value changes by one and then subsequent scroll events are not seen.

Conversely, if the user is scrolling the panel using the mouse wheel and happens to have the cursor over an input which has focus then the value may be inadvertently changed.