Skip to content

Commit

Permalink
tap background to clear annotations #13
Browse files Browse the repository at this point in the history
  • Loading branch information
fredhohman committed Aug 14, 2020
1 parent d6fe3c8 commit 7f2d9a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/diagrams/details-illustration.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
onMount(() => {
assignAnnotations()
tapBackgroundToHideAnnotation()
})
afterUpdate(() => {
Expand Down Expand Up @@ -66,6 +67,10 @@
showFakeImage()
}
function tapBackgroundToHideAnnotation() {
document.getElementById('fake-image').onclick = () => changeAnnotationDisplay()
}
function hideFakeImage() {
document.getElementById('fake-image').classList.add("hide")
Expand Down

0 comments on commit 7f2d9a2

Please sign in to comment.