From 38214a66a384024b80d0854f7274dc6772520e5e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 13 Sep 2022 16:15:59 +0200 Subject: [PATCH] disable mouse drag scrolling in the ui demo --- Demos/UiDemo.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Demos/UiDemo.cs b/Demos/UiDemo.cs index c1edf93..bc23244 100644 --- a/Demos/UiDemo.cs +++ b/Demos/UiDemo.cs @@ -68,9 +68,7 @@ namespace Demos { this.UiSystem.AutoScaleWithScreen = true; // create the root panel that all the other components sit on and add it to the ui system - this.root = new Panel(Anchor.Center, new Vector2(80, 100), Vector2.Zero, false, true) { - ScrollBar = {MouseDragScrolling = true} - }; + this.root = new Panel(Anchor.Center, new Vector2(80, 100), Vector2.Zero, false, true); // add the root to the demos' ui this.UiRoot.AddChild(this.root);