mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Avoid unnecessary debounce triggers on zero-delta scrolls
This commit is contained in:
@ -245,6 +245,9 @@ namespace osu.Game.Overlays.Volume
|
||||
|
||||
private void adjust(double delta, bool isPrecise)
|
||||
{
|
||||
if (delta == 0)
|
||||
return;
|
||||
|
||||
// every adjust increment increases the rate at which adjustments happen up to a cutoff.
|
||||
// this debounce will reset on inactivity.
|
||||
accelerationDebounce?.Cancel();
|
||||
|
Reference in New Issue
Block a user