mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:20:04 +08:00
Avoid unnecessary debounce triggers on zero-delta scrolls
This commit is contained in:
parent
e63edf5b49
commit
af79ad537c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user