You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(material/input): Number input not changing on wheel interaction (#29449)
In blink and webkit browsers the default behavior of increasing or decreasing a focused number input on wheel events is broken until a wheel event listener is explicitly added.
Fixes#29074
(cherry picked from commit 10da6c6)
// This is a noop function and is used to enable mouse wheel input
540
+
// on number inputs
541
+
// on blink and webkit browsers.
542
+
};
543
+
544
+
/**
545
+
* In blink and webkit browsers a focused number input does not increment or decrement its value
546
+
* on mouse wheel interaction unless a wheel event listener is attached to it or one of its ancestors or a passive wheel listener is attached somewhere in the DOM.
547
+
* For example: Hitting a tooltip once enables the mouse wheel input for all number inputs as long as it exists.
548
+
* In order to get reliable and intuitive behavior we apply a wheel event on our own
549
+
* thus making sure increment and decrement by mouse wheel works every time.
0 commit comments