Skip to content

Commit

Permalink
allow hybrid scrolls at a per instance level
Browse files Browse the repository at this point in the history
ianharrigan committed May 29, 2024
1 parent 7f7cacc commit 88f7747
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions haxe/ui/containers/ScrollView.hx
Original file line number Diff line number Diff line change
@@ -572,6 +572,13 @@ private class ThumbSize extends DataBehaviour {
@:dox(hide) @:noCompletion
@:access(haxe.ui.core.Component)
private class ScrollModeBehaviour extends DataBehaviour {
public override function set(value:Variant) {
if (value == ScrollMode.HYBRID) {
_component.isHybridScroller = true;
}
super.set(value);
}

public override function validateData() {
_component.registerInternalEvents(true);
}

0 comments on commit 88f7747

Please sign in to comment.