Skip to content

Commit

Permalink
Make ScrollbarMovementExtent protected
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Nov 11, 2024
1 parent 23913b7 commit 3bab44a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osu.Framework/Graphics/Containers/ScrollContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ public bool ScrollbarOverlapsContent
/// <summary>
/// The maximum distance that the scrollbar can move in the scroll direction.
/// </summary>
public float ScrollbarMovementExtent => Math.Max(DisplayableContent - Scrollbar.DrawSize[ScrollDim], 0);
/// <remarks>
/// May not be accurate to actual display of scrollbar if <see cref="ToScrollbarPosition"/> or <see cref="FromScrollbarPosition"/> are overridden.
/// </remarks>
protected float ScrollbarMovementExtent => Math.Max(DisplayableContent - Scrollbar.DrawSize[ScrollDim], 0);

/// <summary>
/// Clamp a value to the available scroll range.
Expand Down

0 comments on commit 3bab44a

Please sign in to comment.