1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 23:02:56 +08:00

Add float comparison leniency just in case

This commit is contained in:
OliBomby 2024-08-27 19:04:16 +02:00
parent 71044a0766
commit daad476593

View File

@ -14,6 +14,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.UserInterface;
using osu.Framework.Input.Events;
using osu.Framework.Utils;
using osu.Game.Audio;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
@ -71,7 +72,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
private void onShowSampleEditPopoverRequested(double time)
{
if (time == GetTime())
if (Precision.AlmostEquals(time, GetTime()))
this.ShowPopover();
}