chore: cleanup
This commit is contained in:
parent
da82d4035a
commit
fa45422bf9
2 changed files with 28 additions and 14 deletions
|
|
@ -57,6 +57,11 @@ export function TextReveal(props: {
|
|||
() => props.text,
|
||||
(next, prev) => {
|
||||
if (next === prev) return
|
||||
if (typeof next === "string" && typeof prev === "string" && next.startsWith(prev)) {
|
||||
setCur(next)
|
||||
widen(win())
|
||||
return
|
||||
}
|
||||
setSwapping(true)
|
||||
setOld(prev)
|
||||
setCur(next)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue