mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
fix(app): scroll submissions to the end from history
This commit is contained in:
parent
11bb2e1b60
commit
9f8cb10b5e
1 changed files with 8 additions and 1 deletions
|
|
@ -918,7 +918,14 @@ export function createTimelineVirtualizer(input: Input) {
|
|||
if (!active() || !root?.isConnected) return
|
||||
|
||||
// Already following its end (sending a prompt resumes it): rows growing in keep growing.
|
||||
if (behavior !== "smooth" && following() && !rendering.anchor && !rendering.scrollAdjustment) return
|
||||
if (
|
||||
behavior !== "smooth" &&
|
||||
following() &&
|
||||
!rendering.anchor &&
|
||||
!rendering.scrollAdjustment &&
|
||||
root.scrollHeight - root.clientHeight - root.scrollTop <= 1
|
||||
)
|
||||
return
|
||||
prepareNavigation()
|
||||
input.onPin()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue