UX: tweak image preview

This commit is contained in:
Pieter Vander Vennet 2023-12-06 13:19:45 +01:00
parent 095b0e0d82
commit 24581e42ca
2 changed files with 3 additions and 5 deletions

View file

@ -1,10 +1,9 @@
<script lang="ts">
import { Store } from "../../Logic/UIEventSource"
/**
* The image preview allows to drag and zoom in to the image
*/
import * as panzoom from "panzoom"
import panzoom from "panzoom"
import type { ProvidedImage } from "../../Logic/ImageProviders/ImageProvider"
export let image : ProvidedImage
@ -25,5 +24,4 @@
</script>
<img bind:this={panzoomEl} src={image.url} />
<img bind:this={panzoomEl} src={image.url}/>