mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-23 20:13:35 +00:00
refactor(tui): simplify marquee reset (#41758)
This commit is contained in:
parent
e9f5842f29
commit
5d32845b02
1 changed files with 1 additions and 5 deletions
|
|
@ -62,13 +62,9 @@ function createMarquee(hovered: () => string | undefined, animations: () => bool
|
|||
const leading = createAnimatable({ opacity: 0 }, { enabled: animations, transition: tween({ duration: 0.25 }) })
|
||||
|
||||
createEffect(() => {
|
||||
if (!hovered()) {
|
||||
setOffset(0)
|
||||
leading.jump({ opacity: 0 })
|
||||
return
|
||||
}
|
||||
setOffset(0)
|
||||
leading.jump({ opacity: 0 })
|
||||
if (!hovered()) return
|
||||
let interval: ReturnType<typeof setInterval> | undefined
|
||||
const delay = setTimeout(() => {
|
||||
setOffset(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue