We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ffed2f commit 0ce61c8Copy full SHA for 0ce61c8
1 file changed
packages/app/src/pages/session.tsx
@@ -943,15 +943,12 @@ export default function Page() {
943
if (next === dockHeight) return
944
945
const el = scroller
946
- const stick = el ? el.scrollHeight - el.clientHeight - el.scrollTop < 10 : false
+ const delta = next - dockHeight
947
+ const stick = el ? el.scrollHeight - el.clientHeight - el.scrollTop < 10 + Math.max(0, delta) : false
948
949
dockHeight = next
950
- if (stick && el) {
951
- requestAnimationFrame(() => {
952
- el.scrollTo({ top: el.scrollHeight, behavior: "auto" })
953
- })
954
- }
+ if (stick) autoScroll.forceScrollToBottom()
955
956
if (el) scheduleScrollState(el)
957
scrollSpy.markDirty()
0 commit comments