1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 10:22:56 +08:00

TimeSpans can be negative!

This commit is contained in:
phosphene47 2019-11-27 22:51:27 +11:00
parent b126700f01
commit 037d927e45
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ namespace osu.Game.Graphics.UserInterface
{
var debounceMs = (int)DebounceTime.TotalMilliseconds;
if (debounceMs == 0)
if (debounceMs <= 0)
sampleClick?.Play();
else
playDelegate = Scheduler.AddDelayed(() => sampleClick?.Play(), debounceMs);

View File

@ -44,7 +44,7 @@ namespace osu.Game.Graphics.UserInterface
var debounceMs = (int)DebounceTime.TotalMilliseconds;
if (debounceMs == 0)
if (debounceMs <= 0)
sampleHover?.Play();
else
playDelegate = Scheduler.AddDelayed(() => sampleHover?.Play(), debounceMs);