diff --git a/.gitignore b/.gitignore index 427f60e06..016cb5d81 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ cypress/**/__diff_output__/ .env coverage/ eslint_report.json +.beads/ diff --git a/src/renderer.ts b/src/renderer.ts index a3ca21617..4ba50190b 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -725,7 +725,8 @@ class Renderer extends EventEmitter { ? `translateX(-${progress * this.options.cursorWidth}px)` : '' - if (this.isScrollable && this.options.autoScroll) { + // Only scroll if we have valid audio data to prevent race conditions during loading + if (this.isScrollable && this.options.autoScroll && this.audioData && this.audioData.duration > 0) { this.scrollIntoView(progress, isPlaying) } }