From b8529210f1ab744956fdf1201590d6634b5add35 Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Fri, 20 Mar 2020 12:23:48 +0000 Subject: [PATCH] fiddle easing function --- src/mixer/state.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixer/state.ts b/src/mixer/state.ts index f370d50..5e9317f 100644 --- a/src/mixer/state.ts +++ b/src/mixer/state.ts @@ -270,7 +270,7 @@ export const setVolume = ( }); const gainTween = new Between(currentGain, volume) .time(FADE_TIME_SECONDS * 1000) - .easing((Between as any).Easing.Quadratic.InOut) + .easing((Between as any).Easing.Exponential.InOut) .on("update", (val: number) => { console.log(val); dispatch(mixerState.actions.setPlayerGain({ player, gain: val }));