Adjust steps for some settings.

This commit is contained in:
2023-03-30 12:20:49 +08:00
parent ba7a458e7c
commit ee4b0c5483
2 changed files with 7 additions and 7 deletions

View File

@@ -131,7 +131,7 @@ namespace Cryville.Crtr.Browsing {
else result = (1 - ratio) * Range.Value.x + ratio * Range.Value.y;
}
else {
double delta = (ratio - 0.5f) * 2 * MaxStep * Time.deltaTime;
double delta = (ratio > 0.5 ? 1 : -1) * Math.Pow((ratio - 0.5f) * 2, 2) * MaxStep * Time.deltaTime;
if (LogarithmicMode) result = Math.Pow(Math.E, Math.Log(m_value) + delta);
else result = m_value + delta;
}