mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Fix toolbox items spontaneously contracting after briefly losing hover
Reproduction scenario: 1. Hover a toolbox item 2. Unhover the item, but do not hover any other item (can be done by exiting the toolbox completely to the right) 3. Come back to the item hovered in step (1) 4. The item would spontaneously contract after a second
This commit is contained in:
parent
5ed038fbb3
commit
2aa4481f68
@ -122,6 +122,7 @@ namespace osu.Game.Overlays.SkinEditor
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
expandContractAction?.Cancel();
|
||||
expandContractAction = Scheduler.AddDelayed(() =>
|
||||
{
|
||||
this.ResizeHeightTo(expanded_size, animation_duration, Easing.OutQuint);
|
||||
|
Loading…
Reference in New Issue
Block a user