Skip to content

Commit 8166354

Browse files
committed
Change OffsetScrollPosition to take a double
In line with other changes, this should have been switched to `double`. Also making `virtual` for usage within the beatmap carousel (I need to extend what this function does for this usage).
1 parent ffac972 commit 8166354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

osu.Framework/Graphics/Containers/ScrollContainer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ protected override bool OnScroll(ScrollEvent e)
418418
/// Immediately offsets the current and target scroll position.
419419
/// </summary>
420420
/// <param name="offset">The scroll offset.</param>
421-
public void OffsetScrollPosition(float offset)
421+
public virtual void OffsetScrollPosition(double offset)
422422
{
423423
Target += offset;
424424
Current += offset;

0 commit comments

Comments
 (0)