From 904a1b65f8da2fb300d2a23c7084810a954fb082 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Fri, 30 Aug 2024 09:36:30 +0200 Subject: [PATCH] dont blindly dispatch drag event when not user interaction --- haxe/ui/components/Slider.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/haxe/ui/components/Slider.hx b/haxe/ui/components/Slider.hx index 9de5b9906..fca45e74d 100644 --- a/haxe/ui/components/Slider.hx +++ b/haxe/ui/components/Slider.hx @@ -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) {