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

@ -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);