From 36b183f856357707a93e377cf4da4df80774721d Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 16 Jul 2021 02:03:30 +0300 Subject: [PATCH] Message List: Adjust focus animation curve again --- src/modules/actions/api/initial.ts | 1 - src/util/fastSmoothScroll.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/actions/api/initial.ts b/src/modules/actions/api/initial.ts index 28dd7e53c..e4fc9c4bd 100644 --- a/src/modules/actions/api/initial.ts +++ b/src/modules/actions/api/initial.ts @@ -178,7 +178,6 @@ addReducer('loadNearestCountry', (global) => { })(); }); - addReducer('setDeviceToken', (global, actions, deviceToken) => { setGlobal({ ...global, diff --git a/src/util/fastSmoothScroll.ts b/src/util/fastSmoothScroll.ts index 6d0a7770f..b90d08677 100644 --- a/src/util/fastSmoothScroll.ts +++ b/src/util/fastSmoothScroll.ts @@ -145,7 +145,7 @@ function scrollWithJs( } function longTransition(t: number) { - return t === 1 ? 1 : 1 - 2 ** (-10 * t); + return 1 - ((1 - t) ** 5); } function shortTransition(t: number) {