Skip to content

Commit 99e7d3a

Browse files
committed
fix: auto scrolling not working on new convo
1 parent baff73b commit 99e7d3a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/frontend/app/components/chat/ChatInterface.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ function doScrollBottom({ smooth = true, maybe = false, tries = 0, lastScrollTop
352352
if (tries && (l.$el.scrollTop < lastScrollTop))
353353
tries = 0
354354
355-
if (maybe && l.lenis.direction !== 1)
355+
if (!maybe)
356+
l.lenis.direction = 1
357+
else if (l.lenis.direction !== 1)
356358
return
357359
358360
if (scrollHeight !== l.lenis.limit + l.$el.clientHeight) {

0 commit comments

Comments
 (0)