haxeui / haxeui-core

The core library of the HaxeUI framework
http://haxeui.org
MIT License
340 stars 70 forks source link

Add `isDragging` to `DragManager` #597

Closed Sword352 closed 5 months ago

Sword352 commented 5 months ago

This pull requests adds a boolean helper to DragManager which returns whether a component is currently being dragged. Useful to stop external interactions with project related stuff etc.

ianharrigan commented 5 months ago

why not just:

    public var isDragging(get, null):Bool;
    private inline function get_isDragging():Bool {
        return _currentComponent != null;
    }

?

Sword352 commented 5 months ago

Sure thing

ianharrigan commented 5 months ago

thanks!