Skip to content

Commit 3313c86

Browse files
committed
fix: mask scroll hook
1 parent 6a05e30 commit 3313c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/shared/use-mask-scrollarea.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useEventCallback } from '../common/use-event-callback'
88
export const useMaskScrollArea = <T extends HTMLElement = HTMLElement>() => {
99
const containerRef = useRef<T>(null)
1010
const [isScrollToBottom, setIsScrollToBottom] = useState(false)
11-
const [isScrollToTop, setIsScrollToTop] = useState(false)
11+
const [isScrollToTop, setIsScrollToTop] = useState(true)
1212
const [canScroll, setCanScroll] = useState(false)
1313
const h = useViewport((v) => v.h)
1414

0 commit comments

Comments
 (0)