diff options
author | Brian Cully <bjc@kublai.com> | 2021-02-19 14:17:16 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2021-02-19 14:17:16 -0500 |
commit | 2f50863c78cf9497db41149112f37a1c55ffdae9 (patch) | |
tree | 456f2db7ea7cbc80d9d7f7589ae336736ecdca53 | |
parent | e998052cb2d8aea08b5af77c4611d08d9623c169 (diff) | |
download | molsim2-2f50863c78cf9497db41149112f37a1c55ffdae9.tar.gz molsim2-2f50863c78cf9497db41149112f37a1c55ffdae9.zip |
Don’t use ‘originalTarget‘ on Safari, just ‘target’ for events.
-rw-r--r-- | lethality-selector.mjs | 3 |
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') } } |