Skip to content

Commit

Permalink
update to make scrollMouseButton a DefaultBehaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
inc0der committed Apr 6, 2024
1 parent db01c12 commit 090f90b
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions haxe/ui/containers/ScrollView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class ScrollView extends InteractiveComponent implements IScroller {
@:clonable @:behaviour(VScrollPageSize) public var vscrollPageSize:Float;
@:clonable @:behaviour(VScrollThumbSize) public var vscrollThumbSize:Null<Float>;
@:clonable @:behaviour(ThumbSize) public var thumbSize:Null<Float>;
@:clonable @:behaviour(ScrollMouseButton) public var scrollMouseButton:MouseButton;
@:clonable @:behaviour(DefaultBehaviour, MouseButton.LEFT) public var scrollMouseButton:MouseButton;
@:clonable @:behaviour(ScrollModeBehaviour, ScrollMode.DRAG) public var scrollMode:ScrollMode;
@:clonable @:behaviour(ScrollPolicyBehaviour) public var scrollPolicy:ScrollPolicy;
@:clonable @:behaviour(HScrollPolicyBehaviour) public var horizontalScrollPolicy:ScrollPolicy;
Expand Down Expand Up @@ -546,21 +546,6 @@ private class ThumbSize extends DataBehaviour {
}
}

@:dox(hide) @:noCompletion
@:access(haxe.ui.core.Component)
private class ScrollMouseButton extends DataBehaviour {
private var _scrollview:ScrollView;

public function new(scrollview:ScrollView) {
super(scrollview);
_scrollview = scrollview;
}

public override function validateData() {
_scrollview.scrollMouseButton = _value;
}
}

@:dox(hide) @:noCompletion
@:access(haxe.ui.core.Component)
private class ScrollModeBehaviour extends DataBehaviour {
Expand Down

0 comments on commit 090f90b

Please sign in to comment.