Message List: Fix scroll tools on Android
This commit is contained in:
parent
1344fb6cb1
commit
a4e0098053
@ -58,7 +58,7 @@ export default function useScrollHooks(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { offsetHeight, scrollHeight, scrollTop } = containerRef.current!;
|
const { offsetHeight, scrollHeight, scrollTop } = containerRef.current!;
|
||||||
const scrollBottom = scrollHeight - scrollTop - offsetHeight;
|
const scrollBottom = Math.round(scrollHeight - scrollTop - offsetHeight);
|
||||||
const isNearBottom = scrollBottom <= FAB_THRESHOLD;
|
const isNearBottom = scrollBottom <= FAB_THRESHOLD;
|
||||||
const isAtBottom = scrollBottom <= 0;
|
const isAtBottom = scrollBottom <= 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user