forked from MapComplete/MapComplete
UX: tweak image preview
This commit is contained in:
parent
095b0e0d82
commit
24581e42ca
2 changed files with 3 additions and 5 deletions
|
@ -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}/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue