1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 04:53:29 +01:00

disable mouse drag scrolling in the ui demo

This commit is contained in:
Ell 2022-09-13 16:15:59 +02:00
parent a6fd2c052e
commit 38214a66a3

View file

@ -68,9 +68,7 @@ namespace Demos {
this.UiSystem.AutoScaleWithScreen = true; this.UiSystem.AutoScaleWithScreen = true;
// create the root panel that all the other components sit on and add it to the ui system // 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) { this.root = new Panel(Anchor.Center, new Vector2(80, 100), Vector2.Zero, false, true);
ScrollBar = {MouseDragScrolling = true}
};
// add the root to the demos' ui // add the root to the demos' ui
this.UiRoot.AddChild(this.root); this.UiRoot.AddChild(this.root);