1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 03:22:55 +08:00

Fix bounce when scrolling to first/last column

This commit is contained in:
Bartłomiej Dach 2022-04-24 19:20:50 +02:00
parent ebc8429495
commit 09c08248c4
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -408,7 +408,7 @@ namespace osu.Game.Overlays.Mods
protected override bool OnMouseDown(MouseDownEvent e) protected override bool OnMouseDown(MouseDownEvent e)
{ {
if (!isFullyOnScreen.Value) if (!isFullyOnScreen.Value)
parentScroll.ScrollTo(DrawPosition.X - 70); parentScroll.ScrollTo(Math.Clamp(DrawPosition.X - 70, 0, parentScroll.ScrollableExtent));
return true; return true;
} }