summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 14:17:16 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 14:17:16 -0500
commit2f50863c78cf9497db41149112f37a1c55ffdae9 (patch)
tree456f2db7ea7cbc80d9d7f7589ae336736ecdca53
parente998052cb2d8aea08b5af77c4611d08d9623c169 (diff)
downloadmolsim2-2f50863c78cf9497db41149112f37a1c55ffdae9.tar.gz
molsim2-2f50863c78cf9497db41149112f37a1c55ffdae9.zip
Don’t use ‘originalTarget‘ on Safari, just ‘target’ for events.
-rw-r--r--lethality-selector.mjs3
1 files changed, 2 insertions, 1 deletions
diff --git a/lethality-selector.mjs b/lethality-selector.mjs
index 9f5813d..80c3e71 100644
--- a/lethality-selector.mjs
+++ b/lethality-selector.mjs
@@ -27,7 +27,8 @@ class LethalitySelector {
}
select(evt) {
- this.onItemSelected(evt.originalTarget.id == 'lethal')
+ window.evt = evt
+ this.onItemSelected(evt.target.id == 'lethal')
}
}