We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a05e30 commit 3313c86Copy full SHA for 3313c86
src/hooks/shared/use-mask-scrollarea.ts
@@ -8,7 +8,7 @@ import { useEventCallback } from '../common/use-event-callback'
8
export const useMaskScrollArea = <T extends HTMLElement = HTMLElement>() => {
9
const containerRef = useRef<T>(null)
10
const [isScrollToBottom, setIsScrollToBottom] = useState(false)
11
- const [isScrollToTop, setIsScrollToTop] = useState(false)
+ const [isScrollToTop, setIsScrollToTop] = useState(true)
12
const [canScroll, setCanScroll] = useState(false)
13
const h = useViewport((v) => v.h)
14
0 commit comments