Skip to content

High performance self-hosted photo and video management solution.

fix(web): stale adaptive image when original overlays preview (#27621)

Min Idzelis50557002b777
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 @@
});
</script>
-<div class="relative h-full w-full overflow-hidden will-change-transform" bind:this={ref}>
+<div class="relative h-full w-full overflow-hidden" bind:this={ref}>
{@render backdrop?.()}
<div