diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-21 19:32:59 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-08-21 00:28:20 +0200 |
commit | d75fafe3b207127042bd6c99a42a84b7baf67ffa (patch) | |
tree | 80a2d313797ed38dbaf2c1655c4e4000edd2c239 | |
parent | b8b7d6cbac17100688bb48467033343eac0c1f05 (diff) | |
download | washingtons-war-d75fafe3b207127042bd6c99a42a84b7baf67ffa.tar.gz |
fix popup menu
-rw-r--r-- | play.js | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -465,10 +465,10 @@ function show_popup_menu(evt, menu_id, target_id, title) { menu.style.left = x + "px" menu.style.top = y + "px" - return true + evt.stopPropagation() + } else { + menu.style.display = "none" } - - return false } function hide_popup_menu() { @@ -479,7 +479,6 @@ function on_card(evt) { if (view.actions) { let c = evt.target.id.split("+")[1] | 0; show_popup_menu(evt, "popup", c, CARDS[c].title) - evt.stopPropagation() } } |