1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 13:33:03 +08:00

Change initial scroll animation to mod columns

Starting from the end (which should be fine with the current number of columns, even on different/wider screen resolutions), and with a custom decay value when it reaches zero offset.
This commit is contained in:
Gabriel Del Nero 2024-02-27 15:35:51 +01:00
parent 087a2a741a
commit 09dee50372
No known key found for this signature in database
GPG Key ID: C28985682A6A36C9

View File

@ -341,12 +341,12 @@ namespace osu.Game.Overlays.Mods
column.SearchTerm = query.NewValue;
}, true);
// Start scrolled slightly to the right to give the user a sense that
// Start scrolling from the end, to give the user a sense that
// there is more horizontal content available.
ScheduleAfterChildren(() =>
{
columnScroll.ScrollTo(200, false);
columnScroll.ScrollToStart();
columnScroll.ScrollToEnd(false);
columnScroll.ScrollTo(0, true, 0.0055);
});
}