From 0cecee7d46a5fab32e9c24070293d010f35b1218 Mon Sep 17 00:00:00 2001 From: Shallowmallow Date: Mon, 2 Dec 2024 18:30:31 +0100 Subject: [PATCH] Making inner components drag work --- haxe/ui/dragdrop/DragManager.hx | 1 + 1 file changed, 1 insertion(+) diff --git a/haxe/ui/dragdrop/DragManager.hx b/haxe/ui/dragdrop/DragManager.hx index ef78e58b7..2af6bcf34 100644 --- a/haxe/ui/dragdrop/DragManager.hx +++ b/haxe/ui/dragdrop/DragManager.hx @@ -133,6 +133,7 @@ class DragManager { /////////////// private function onMouseDown(e:MouseEvent) { + if (_currentComponent != null) return; // set current pending dragging component _currentComponent = _mouseTargetToDragTarget.get(e.target); if (_currentComponent.parentComponent == null) {