mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-21 21:01:29 +01:00
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 scrollBottom = scrollHeight - scrollTop - offsetHeight;
|
||||
const scrollBottom = Math.round(scrollHeight - scrollTop - offsetHeight);
|
||||
const isNearBottom = scrollBottom <= FAB_THRESHOLD;
|
||||
const isAtBottom = scrollBottom <= 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user