diff --git a/web/src/lib/actions/zoom-image.ts b/web/src/lib/actions/zoom-image.ts index 07c44569cd..cd8b79c9ba 100644 --- a/web/src/lib/actions/zoom-image.ts +++ b/web/src/lib/actions/zoom-image.ts @@ -124,9 +124,6 @@ export const zoomImageAction = (node: HTMLElement, options?: { zoomTarget?: HTML { capture: true, signal }, ); - if (options?.zoomTarget) { - options.zoomTarget.style.willChange = 'transform'; - } node.style.overflow = 'visible'; node.style.touchAction = 'none'; return { @@ -138,9 +135,6 @@ export const zoomImageAction = (node: HTMLElement, options?: { zoomTarget?: HTML }, destroy() { controller.abort(); - if (options?.zoomTarget) { - options.zoomTarget.style.willChange = ''; - } for (const unsubscribe of unsubscribes) { unsubscribe(); } diff --git a/web/src/lib/components/AdaptiveImage.svelte b/web/src/lib/components/AdaptiveImage.svelte index ed574cbe39..c51ef10c11 100644 --- a/web/src/lib/components/AdaptiveImage.svelte +++ b/web/src/lib/components/AdaptiveImage.svelte @@ -148,7 +148,7 @@ }); -
+
{@render backdrop?.()}