This commit is contained in:
Kovid Goyal
2025-05-29 08:17:45 +05:30
parent d2b871da68
commit 3a46e2fe0b
2 changed files with 3 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ apply_easing_curve(const Animation *a, double val, monotonic_t duration) {
animation_function *f = a->functions + idx;
double interval_size = 1. / a->count, interval_start = idx * interval_size;
double scaled_val = (val - interval_start) / interval_size;
double ans = f->curve(&f->params, scaled_val, duration);
double ans = f->curve(f->params, scaled_val, duration);
return f->y_at_start + unit_value(ans) * f->y_size;
}