Skip to content

Commit

Permalink
Merge pull request #597 from Sword352/drag-pr
Browse files Browse the repository at this point in the history
Add `isDragging` to `DragManager`
  • Loading branch information
ianharrigan authored Apr 1, 2024
2 parents 2aa0071 + eaf7eb1 commit 9cfb7c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions haxe/ui/dragdrop/DragManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ class DragManager {
// Instance
//****************************************************************************************************

/**
* Whether a component is currently being dragged
*/
public var isDragging(get, never):Bool;
function get_isDragging():Bool {
return _currentComponent != null;
}

private var _dragComponents:Map<Component, DragOptions>;
private var _mouseTargetToDragTarget:Map<Component, Component>;

Expand Down

0 comments on commit 9cfb7c5

Please sign in to comment.