mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-04 23:40:48 +00:00
chore: cleanup
This commit is contained in:
parent
6f90c3d73a
commit
70c6fcfbbf
1 changed files with 3 additions and 1 deletions
|
|
@ -78,11 +78,13 @@ export function createAutoScroll(options: AutoScrollOptions) {
|
|||
|
||||
const scrollToBottom = (force: boolean) => {
|
||||
if (!force && !active()) return
|
||||
|
||||
if (force && store.userScrolled) setStore("userScrolled", false)
|
||||
|
||||
const el = scroll
|
||||
if (!el) return
|
||||
|
||||
if (!force && store.userScrolled) return
|
||||
if (force && store.userScrolled) setStore("userScrolled", false)
|
||||
|
||||
const distance = distanceFromBottom(el)
|
||||
if (distance < 2) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue