From 84b3c9bfa754d0ce2cc67115e0e4e07a12282535 Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Sat, 5 Aug 2023 14:35:12 -0500 Subject: [PATCH 1/5] update readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index a4a9be5..9ca4ca9 100644 --- a/readme.md +++ b/readme.md @@ -173,7 +173,7 @@ Specify wrapper element to trap focus within on tab press. Useful when mounting Type: `number`
Default: `10` -Restricts an image's maximum zoom level to `maxZoom` times the starting size, even if the item's `width` / `height` is larger. For example, a `maxZoom` of 2 on an image that is 800px wide when zoomed out would limit the image to a maximum zoom of 1600px width. +Restricts an image's maximum zoom to `maxZoom` times the starting size, even if the item's `width` / `height` is larger. For example, a `maxZoom` of 2 on an image that starts at 800px width would limit the image to a maximum zoom of 1600px width. A `maxZoom` of 1 would prevent zooming entirely. > Note: If `maxZoom` is set on an individual item it will override the value set in options. From 2c81cd453151b9d9f3ecfc0371c7b8f3dd9e9511 Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Sat, 5 Aug 2023 15:42:23 -0500 Subject: [PATCH 2/5] svelte 4 fix: specify all transitions as global / local --- src/bigger-picture.svelte | 10 +++++----- src/components/image.svelte | 2 +- src/components/loading.svelte | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bigger-picture.svelte b/src/bigger-picture.svelte index b1f356a..f34c858 100644 --- a/src/bigger-picture.svelte +++ b/src/bigger-picture.svelte @@ -312,12 +312,12 @@ class:bp-small={smallScreen} class:bp-noclose={opts.noClose} > -
+
{#key activeItem.i}
(clickedEl = e.target)} on:pointerup={function (e) { // only close if left click on self and not dragged @@ -339,13 +339,13 @@ {/if}
{#if activeItem.caption} -
+
{@html activeItem.caption}
{/if} {/key} -
+