Skip to content

Commit

Permalink
fix: '-concat' option animation error in new line
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed Jul 28, 2024
1 parent 4404c9b commit e30949b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/webgal/src/Stage/TextBox/IMSSTextbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ export default function IMSSTextbox(props: ITextboxProps) {
let delay = allTextIndex * textDelay;
allTextIndex++;
let prevLength = currentConcatDialogPrev.length;
if (currentConcatDialogPrev !== '' && index >= prevLength) {
if (currentConcatDialogPrev !== '' && allTextIndex >= prevLength) {
delay = delay - prevLength * textDelay;
}
const styleClassName = ' ' + css(style);
const styleAllText = ' ' + css(style_alltext);
if (index < prevLength) {
if (allTextIndex < prevLength) {
return (
<span
// data-text={e}
Expand Down

0 comments on commit e30949b

Please sign in to comment.