diff --git a/ea-scripts/Slideshow.md b/ea-scripts/Slideshow.md index 7005eaf..a09e325 100644 --- a/ea-scripts/Slideshow.md +++ b/ea-scripts/Slideshow.md @@ -288,7 +288,7 @@ let busy = false; const scrollToNextRect = async ({left,top,right,bottom,nextZoom},steps = TRANSITION_STEP_COUNT) => { const startTimer = Date.now(); let watchdog = 0; - while(busy && watchdog++<15) await(100); + while(busy && watchdog++<15) await sleep(100); if(busy && watchdog >= 15) return; busy = true; excalidrawAPI.updateScene({appState:{shouldCacheIgnoreZoom:true}}); @@ -746,4 +746,4 @@ if(window.ExcalidrawSlideshow && (window.ExcalidrawSlideshow.script === utils.sc timestamp }; window.ExcalidrawSlideshowStartTimer = window.setTimeout(start,500); -} \ No newline at end of file +}