diff --git a/web/apps/cast/src/components/Slide.tsx b/web/apps/cast/src/components/Slide.tsx index 8309f8bc2..4df36c4c1 100644 --- a/web/apps/cast/src/components/Slide.tsx +++ b/web/apps/cast/src/components/Slide.tsx @@ -11,7 +11,7 @@ interface SlideViewProps { * Also show {@link nextURL} in an hidden image view to prepare the browser for * an imminent transition to it. */ -export const SlideView: React.FC = ({ url, nextURL }) => { +export const SlideView: React.FC = ({ url }) => { return (
= ({ url, nextURL }) => { backdropFilter: "blur(10px)", }} > - + /> */} 1) + URL.revokeObjectURL(previousURLs.shift()); - const oldestURL = urls.shift(); - console.log("Not revoking", oldestURL); + previousURLs.push(url); + + // const previousURL = oldURLs.length == 0 ? undefined : urls.shift(); + + // if (urls.length < 2) continue; + + // console.log("Not revoking", oldestURL); // if (oldestURL && i !== 1) URL.revokeObjectURL(oldestURL); // i += 1; const urlPair: RenderableImageURLPair = [ - ensure(urls[0]), - ensure(urls[1]), + url, + "", + // ensure(urls[0]), + // ensure(urls[1]), ]; const elapsedTime = Date.now() - lastYieldTime;