Converge increments only when holding the left/right button.

This commit is contained in:
Skyth 2024-11-19 12:22:58 +03:00
parent faa053cd77
commit 749216d2af

View file

@ -610,7 +610,7 @@ static void DrawConfigOption(int32_t rowIndex, float yOffset, ConfigDef<T>* conf
config->Value += 0.01f; config->Value += 0.01f;
deltaTime -= INCREMENT_TIME; deltaTime -= INCREMENT_TIME;
} while (deltaTime > 0.0f); } while (fastIncrement && deltaTime > 0.0f);
config->Value = std::clamp(config->Value, valueMin, valueMax); config->Value = std::clamp(config->Value, valueMin, valueMax);
} }