Skip to content

Commit

Permalink
Merge pull request #610 from Jarrio/patch-8
Browse files Browse the repository at this point in the history
Update Range.hx
  • Loading branch information
ianharrigan authored May 17, 2024
2 parents c27ba78 + d99f962 commit fe39b8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions haxe/ui/components/Range.hx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ private class RangeEnd extends DataBehaviour {
@:access(haxe.ui.core.Component)
private class AllowInteraction extends DefaultBehaviour {
public override function get():Variant {
return (_component._internalEvents != null);
#if (haxe_ver < 5)
return _component._internalEvents != null;
#else
return @:privateAccess Variant.fromBool(_component._internalEvents != null);
#end
}

public override function set(value:Variant) {
Expand Down Expand Up @@ -266,4 +270,4 @@ class RangeBuilder extends CompositeBuilder {
var name = _component.className.split(".").pop();
trace("WARNING: trying to create an instance of '" + name + "' directly, use either 'Horizontal" + name + "' or 'Vertical" + name + "'");
}
}
}

0 comments on commit fe39b8c

Please sign in to comment.