mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-13 17:43:50 +02:00
expose a property in ScrollBar determining if we're currently scrolling it
This commit is contained in:
parent
46939f7877
commit
914761519f
|
@ -84,6 +84,10 @@ namespace MLEM.Ui.Elements {
|
|||
/// An event that is called when this scroll bar is automatically hidden from a <see cref="Panel"/>
|
||||
/// </summary>
|
||||
public GenericCallback OnAutoHide;
|
||||
/// <summary>
|
||||
/// This property is true while the user scrolls on the scroll bar using the mouse or touch input
|
||||
/// </summary>
|
||||
public bool IsBeingScrolled => this.isMouseHeld || this.isDragging || this.isTouchHeld;
|
||||
private bool isMouseHeld;
|
||||
private bool isDragging;
|
||||
private bool isTouchHeld;
|
||||
|
|
Loading…
Reference in a new issue