diff --git a/src/components/middle/hooks/useScrollHooks.ts b/src/components/middle/hooks/useScrollHooks.ts index 919eb2297..eabc4d376 100644 --- a/src/components/middle/hooks/useScrollHooks.ts +++ b/src/components/middle/hooks/useScrollHooks.ts @@ -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;