Skip to content

Commit

Permalink
dont blindly dispatch drag event when not user interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Aug 30, 2024
1 parent 3d357f4 commit 904a1b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haxe/ui/components/Slider.hx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,9 @@ private class Events extends haxe.ui.events.Events {
event.previousValue = e.previousValue;
event.value = e.value;
_slider.dispatch(event);
_slider.dispatch(new DragEvent(DragEvent.DRAG));
if (_activeThumb != null) {
_slider.dispatch(new DragEvent(DragEvent.DRAG));
}
}

private function onRangeMouseDown(e:MouseEvent) {
Expand Down

0 comments on commit 904a1b6

Please sign in to comment.