From f8a0d501b1269032620b30c9006f88a4ee8d6e9d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 21 Oct 2023 19:32:59 +0200 Subject: fix popup menu --- play.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 3a0c7ec..6cb2fdc 100644 --- a/play.js +++ b/play.js @@ -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() } } -- cgit v1.2.3