Message List: Fix scroll tools on Android

This commit is contained in:
Alexander Zinchuk 2021-08-23 03:38:18 +03:00
parent 1344fb6cb1
commit a4e0098053

View File

@ -58,7 +58,7 @@ export default function useScrollHooks(
}
const { offsetHeight, scrollHeight, scrollTop } = containerRef.current!;
const scrollBottom = scrollHeight - scrollTop - offsetHeight;
const scrollBottom = Math.round(scrollHeight - scrollTop - offsetHeight);
const isNearBottom = scrollBottom <= FAB_THRESHOLD;
const isAtBottom = scrollBottom <= 0;