1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:42:54 +08:00

Fix incorrect button state in some cases

This commit is contained in:
Andrei Zavatski 2020-04-12 07:34:58 +03:00
parent 25f36e87a6
commit 7a9ee907bf

View File

@ -60,7 +60,7 @@ namespace osu.Game.Overlays
return;
currentTarget = Target;
Button.State = Current > button_scroll_position ? Visibility.Visible : Visibility.Hidden;
Button.State = Target > button_scroll_position ? Visibility.Visible : Visibility.Hidden;
}
public class ScrollToTopButton : OsuHoverContainer