diff --git a/src/diagrams/details-illustration.svelte b/src/diagrams/details-illustration.svelte index 6c757c5..a9ffc3b 100644 --- a/src/diagrams/details-illustration.svelte +++ b/src/diagrams/details-illustration.svelte @@ -25,6 +25,7 @@ onMount(() => { assignAnnotations() + tapBackgroundToHideAnnotation() }) afterUpdate(() => { @@ -66,6 +67,10 @@ showFakeImage() } + function tapBackgroundToHideAnnotation() { + document.getElementById('fake-image').onclick = () => changeAnnotationDisplay() + } + function hideFakeImage() { document.getElementById('fake-image').classList.add("hide")