Message List: Reduce sensitive area as an attempt to prevent scroll jumps

This commit is contained in:
Alexander Zinchuk 2021-06-15 00:25:51 +03:00
parent 45ee2fe854
commit dc5ad4493e

View File

@ -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;