Skip to content

Commit

Permalink
make wheel event low priority so easier to cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 3, 2024
1 parent da0a36d commit 6e14b45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haxe/ui/components/NumberStepper.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package haxe.ui.components;

import haxe.ui.constants.Priority;
import haxe.ui.actions.ActionType;
import haxe.ui.behaviours.DataBehaviour;
import haxe.ui.behaviours.DefaultBehaviour;
Expand Down Expand Up @@ -225,7 +226,7 @@ private class Events extends haxe.ui.events.Events {
_stepper.registerEvent(FocusEvent.FOCUS_OUT, onFocusOut);
}
if (!_stepper.hasEvent(MouseEvent.MOUSE_WHEEL, onMouseWheel)) {
_stepper.registerEvent(MouseEvent.MOUSE_WHEEL, onMouseWheel);
_stepper.registerEvent(MouseEvent.MOUSE_WHEEL, onMouseWheel, Priority.LOW);
}
if (!LocaleManager.instance.hasEvent(LocaleEvent.LOCALE_CHANGED, onLocaleChanged)) {
LocaleManager.instance.registerEvent(LocaleEvent.LOCALE_CHANGED, onLocaleChanged);
Expand Down

0 comments on commit 6e14b45

Please sign in to comment.