mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 03:22:53 +08:00
Add float comparison leniency just in case
This commit is contained in:
parent
71044a0766
commit
daad476593
@ -14,6 +14,7 @@ using osu.Framework.Graphics.Containers;
|
|||||||
using osu.Framework.Graphics.Cursor;
|
using osu.Framework.Graphics.Cursor;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
using osu.Framework.Input.Events;
|
using osu.Framework.Input.Events;
|
||||||
|
using osu.Framework.Utils;
|
||||||
using osu.Game.Audio;
|
using osu.Game.Audio;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
@ -71,7 +72,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
|
|
||||||
private void onShowSampleEditPopoverRequested(double time)
|
private void onShowSampleEditPopoverRequested(double time)
|
||||||
{
|
{
|
||||||
if (time == GetTime())
|
if (Precision.AlmostEquals(time, GetTime()))
|
||||||
this.ShowPopover();
|
this.ShowPopover();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user