fix: unnecessary scroll delay
This commit is contained in:
parent
e9472d761f
commit
183ae03ee3
1 changed files with 1 additions and 4 deletions
|
|
@ -12,10 +12,7 @@ export function ChatScrollAnchor({
|
|||
isAtBottom,
|
||||
scrollAreaRef,
|
||||
}: ChatScrollAnchorProps) {
|
||||
const { ref, inView, entry } = useInView({
|
||||
trackVisibility,
|
||||
delay: 100,
|
||||
});
|
||||
const { ref, inView, entry } = useInView();
|
||||
|
||||
useEffect(() => {
|
||||
if (isAtBottom && trackVisibility && !inView) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue