1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-02 16:20:30 +08:00

TimeSpans can be negative!

This commit is contained in:
phosphene47
2019-11-27 22:51:27 +11:00
Unverified
parent b126700f01
commit 037d927e45
2 changed files with 2 additions and 2 deletions
@@ -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);
@@ -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);