mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
Fix bounce when scrolling to first/last column
This commit is contained in:
parent
ebc8429495
commit
09c08248c4
@ -408,7 +408,7 @@ namespace osu.Game.Overlays.Mods
|
||||
protected override bool OnMouseDown(MouseDownEvent e)
|
||||
{
|
||||
if (!isFullyOnScreen.Value)
|
||||
parentScroll.ScrollTo(DrawPosition.X - 70);
|
||||
parentScroll.ScrollTo(Math.Clamp(DrawPosition.X - 70, 0, parentScroll.ScrollableExtent));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user