mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 20:58:34 +01:00
expose a property in ScrollBar determining if we're currently scrolling it
This commit is contained in:
parent
46939f7877
commit
914761519f
1 changed files with 4 additions and 0 deletions
|
@ -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"/>
|
/// An event that is called when this scroll bar is automatically hidden from a <see cref="Panel"/>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public GenericCallback OnAutoHide;
|
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 isMouseHeld;
|
||||||
private bool isDragging;
|
private bool isDragging;
|
||||||
private bool isTouchHeld;
|
private bool isTouchHeld;
|
||||||
|
|
Loading…
Reference in a new issue