summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-19 14:54:11 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-19 14:54:11 +0100
commit9d239e8da80744ca25c57c2edb949a2c004d1dcb (patch)
tree47da61954aca97ef367edcf828e9e9bd385e1349
parent50ee0a6da1d44b4bd913d6174e4d044e3372d35f (diff)
downloadvotes-for-women-9d239e8da80744ca25c57c2edb949a2c004d1dcb.tar.gz
todo onmousedown
-rw-r--r--play.js2
1 files changed, 2 insertions, 0 deletions
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", {