Skip to content

Commit

Permalink
feat: optimize walls of animated text
Browse files Browse the repository at this point in the history
  • Loading branch information
mmpneo committed Oct 16, 2023
1 parent c1e787c commit 4a0f737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/elements/text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const Element_Text: FC<{ id: string }> = memo(({ id }) => {

const onComplete = useCallback(() => {
isRunning.current = false;
sentencesRef.current[sentencesRef.current.length - 1].state.animateEnable = false
if (sentenceQueue.current.length) // try to dequeue with delay
setTimeout(() => tryDequeue(), stateRef.current.animateDelaySentence)
else
Expand Down

0 comments on commit 4a0f737

Please sign in to comment.