mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
TimeSpans can be negative!
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user