Skip to content

Commit 6d12eb4

Browse files
fix: adjust scroll-up threshold for header visibility
1 parent f9f3730 commit 6d12eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/pages/SessionDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function SessionDetail() {
227227
const maxScrollTop = container.scrollHeight - container.clientHeight
228228
const isAtBottom = maxScrollTop - currentScrollTop < 24
229229
const isScrollingDown = currentScrollTop > previousScrollTop + 4
230-
const isScrollingUp = currentScrollTop < previousScrollTop - 4
230+
const isScrollingUp = currentScrollTop < previousScrollTop - 50
231231

232232
if (isAtBottom || isScrollingDown) {
233233
setIsHeaderVisible(true)

0 commit comments

Comments
 (0)