Fix argon song progress bar tooltip showing during active gameplay

Closes https://github.com/ppy/osu/issues/30197.

Pretty bad one, might be worth a hotfix...
This commit is contained in:
Bartłomiej Dach 2024-10-10 14:36:28 +02:00
parent cab97a96ab
commit 938c3d78ce
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ public LocalisableString TooltipText
{
get
{
if (!Interactive)
return default;
double progress = Math.Clamp(lastMouseX, 0, DrawWidth) / DrawWidth;
TimeSpan currentSpan = TimeSpan.FromMilliseconds(Math.Round((EndTime - StartTime) * progress));