fix(web): fix zoom touch event handling (#26866)

fix(web): fix zoom touch event handling and add clarifying comments

- Suppress Safari's synthetic dblclick on double-tap which conflicts with zoom-image's touchstart-based zoom
- Add comment explaining pointer-events-none on zoom transform wrapper
- Add comments for touchAction and overflow style overrides
This commit is contained in:
Min Idzelis
2026-03-12 10:37:29 -04:00
committed by GitHub
parent 6c531e0a5a
commit 5c3777ab46
2 changed files with 22 additions and 1 deletions
+2 -1
View File
@@ -162,8 +162,9 @@
<div class="relative h-full w-full overflow-hidden will-change-transform" bind:this={ref}>
{@render backdrop?.()}
<!-- pointer-events-none so events pass through to the container where zoom-image listens -->
<div
class="absolute inset-0"
class="absolute inset-0 pointer-events-none"
style:transform={zoomTransform}
style:transform-origin={zoomTransform ? '0 0' : undefined}
>