Skip to content

Commit f5e199a

Browse files
committed
unset current drag component if unregistering drag in itself
1 parent 5fe1066 commit f5e199a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

haxe/ui/dragdrop/DragManager.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ class DragManager {
102102
}
103103

104104
var dragOptions:DragOptions = getDragOptions(component);
105+
if (_currentComponent == component) {
106+
_currentComponent = null;
107+
}
105108

106109
// Unregister events //
107110
if (dragOptions != null && dragOptions.mouseTarget != null) {

0 commit comments

Comments
 (0)