From dc5ad4493e5a5a7d24fde72dde8b25c5135216f9 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 15 Jun 2021 00:25:51 +0300 Subject: [PATCH] Message List: Reduce sensitive area as an attempt to prevent scroll jumps --- src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.ts b/src/config.ts index b774463be..3aeb1cc75 100644 --- a/src/config.ts +++ b/src/config.ts @@ -45,7 +45,7 @@ const isBigScreen = typeof window !== 'undefined' && window.innerHeight >= 900; export const MIN_PASSWORD_LENGTH = 1; -export const MESSAGE_LIST_SENSITIVE_AREA = 750; +export const MESSAGE_LIST_SENSITIVE_AREA = 500; export const MESSAGE_LIST_SLICE = isBigScreen ? 60 : 40; export const MESSAGE_LIST_VIEWPORT_LIMIT = MESSAGE_LIST_SLICE * 2;