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:
parent
087a2a741a
commit
09dee50372
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user