From 090f90b54f8433a41e8eddd25c9e148f93f96c3c Mon Sep 17 00:00:00 2001 From: inc0der Date: Sat, 6 Apr 2024 11:27:51 -0300 Subject: [PATCH] update to make scrollMouseButton a DefaultBehaviour --- haxe/ui/containers/ScrollView.hx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/haxe/ui/containers/ScrollView.hx b/haxe/ui/containers/ScrollView.hx index dae3bf89a..fa30fcb27 100644 --- a/haxe/ui/containers/ScrollView.hx +++ b/haxe/ui/containers/ScrollView.hx @@ -50,7 +50,7 @@ class ScrollView extends InteractiveComponent implements IScroller { @:clonable @:behaviour(VScrollPageSize) public var vscrollPageSize:Float; @:clonable @:behaviour(VScrollThumbSize) public var vscrollThumbSize:Null; @:clonable @:behaviour(ThumbSize) public var thumbSize:Null; - @: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; @@ -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 {