1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:07:23 +08:00

Avoid unnecessary debounce triggers on zero-delta scrolls

This commit is contained in:
Dean Herbert 2021-04-18 23:51:37 +09:00
parent e63edf5b49
commit af79ad537c

View File

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