Improve navigation and accessibility

This commit is contained in:
2021-12-28 13:56:24 +01:00
parent 9edc1a84cd
commit fa3c6913e8
8 changed files with 138 additions and 71 deletions

View File

@@ -1,4 +1,7 @@
<script>
import { createEventDispatcher } from "svelte"
let dispatch = createEventDispatcher()
export const set_file = f => file = f
let file = {
id: "",
@@ -51,6 +54,8 @@ const mouseup = (e) => {
<div bind:this={container} class="container" class:zoom>
<img
on:loadstart={() => {dispatch("loading", true)}}
on:load={() => {dispatch("loading", false)}}
on:dblclick={() => {zoom = !zoom}}
on:doubletap={() => {zoom = !zoom}}
on:mousedown={mousedown}