Skip to content

Commit 6e14b45

Browse files
committed
make wheel event low priority so easier to cancel
1 parent da0a36d commit 6e14b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

haxe/ui/components/NumberStepper.hx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package haxe.ui.components;
22

3+
import haxe.ui.constants.Priority;
34
import haxe.ui.actions.ActionType;
45
import haxe.ui.behaviours.DataBehaviour;
56
import haxe.ui.behaviours.DefaultBehaviour;
@@ -225,7 +226,7 @@ private class Events extends haxe.ui.events.Events {
225226
_stepper.registerEvent(FocusEvent.FOCUS_OUT, onFocusOut);
226227
}
227228
if (!_stepper.hasEvent(MouseEvent.MOUSE_WHEEL, onMouseWheel)) {
228-
_stepper.registerEvent(MouseEvent.MOUSE_WHEEL, onMouseWheel);
229+
_stepper.registerEvent(MouseEvent.MOUSE_WHEEL, onMouseWheel, Priority.LOW);
229230
}
230231
if (!LocaleManager.instance.hasEvent(LocaleEvent.LOCALE_CHANGED, onLocaleChanged)) {
231232
LocaleManager.instance.registerEvent(LocaleEvent.LOCALE_CHANGED, onLocaleChanged);

0 commit comments

Comments
 (0)