1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 02:09:24 +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;
// 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);