From 1947f2232adf98d39a224690a86bac533da88d9f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 21 Oct 2023 19:33:08 +0200 Subject: fix popup menu --- play.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/play.js b/play.js index 4a6fe70..577535e 100644 --- a/play.js +++ b/play.js @@ -755,10 +755,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() { @@ -785,7 +785,6 @@ function on_click_card(evt) { send_action('card', card) } else { show_popup_menu(evt, "popup", card, cards[card].name) - evt.stopPropagation() } } -- cgit v1.2.3