From 9d239e8da80744ca25c57c2edb949a2c004d1dcb Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sun, 19 Nov 2023 14:54:11 +0100 Subject: todo onmousedown --- play.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/play.js b/play.js index 1c3017e..c452b54 100644 --- a/play.js +++ b/play.js @@ -370,6 +370,7 @@ function create_campaigner(color, i) { className: `piece ${color}`, my_campaigner: i, }) + // TODO use onmousedown and figure out why it didn't work on mobile e.addEventListener("click", on_click_campaigner) return e } @@ -384,6 +385,7 @@ function build_user_interface() { if (r) REGIONS_LAYOUT.push(LAYOUT[r]) } + // TODO use onmousedown and figure out why it didn't work on mobile ui.congress_box.addEventListener("click", on_click_congress) for (let c = 1; c <= 6; ++c) { elt = ui.congress[c] = create("div", { -- cgit v1.2.3