diff --git a/MLEM.Ui/Elements/ScrollBar.cs b/MLEM.Ui/Elements/ScrollBar.cs index dc1027e..556cc73 100644 --- a/MLEM.Ui/Elements/ScrollBar.cs +++ b/MLEM.Ui/Elements/ScrollBar.cs @@ -84,6 +84,10 @@ namespace MLEM.Ui.Elements { /// An event that is called when this scroll bar is automatically hidden from a /// public GenericCallback OnAutoHide; + /// + /// This property is true while the user scrolls on the scroll bar using the mouse or touch input + /// + public bool IsBeingScrolled => this.isMouseHeld || this.isDragging || this.isTouchHeld; private bool isMouseHeld; private bool isDragging; private bool isTouchHeld;