There was an error while loading. Please reload this page.
1 parent 4f97cb6 commit fb8f98cCopy full SHA for fb8f98c
1 file changed
apps/webapp/app/hooks/useFollowScroll.ts
@@ -14,7 +14,7 @@ export function useFollowScroll(containerRef: RefObject<HTMLElement | null>, con
14
const onScroll = () => {
15
const { scrollTop, scrollHeight, clientHeight } = container;
16
const distance = scrollHeight - scrollTop - clientHeight;
17
- const movedUp = scrollTop < lastScrollTop && distance > 1;
+ const movedUp = scrollTop < lastScrollTop && distance >= 1;
18
lastScrollTop = scrollTop;
19
setIsAtBottom(!movedUp && distance <= AT_BOTTOM_TOLERANCE_PX);
20
};
0 commit comments