From 09621fa6d75997f3ce4049f36763f11108f8f214 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Thu, 23 Nov 2023 04:30:58 +0100 Subject: check/x offset --- play.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/play.js b/play.js index 8bdef4c..b9eb5d3 100644 --- a/play.js +++ b/play.js @@ -697,15 +697,15 @@ function on_update() { // eslint-disable-line no-unused-vars e = ui.green_checks[green_check_idx++] e.my_us_state = i e.classList.toggle("action", is_green_check_action(i)) - e.style.left = x + "px" - e.style.top = y + "px" + e.style.left = x - 21 + "px" + e.style.top = y - 16 + "px" ui.pieces.appendChild(e) } else if (is_red_x(i)) { e = ui.red_xs[red_x_idx++] e.my_us_state = i e.classList.toggle("action", is_red_x_action(i)) - e.style.left = x + "px" - e.style.top = y + "px" + e.style.left = x - 21 + "px" + e.style.top = y - 16 + "px" ui.pieces.appendChild(e) } } -- cgit v1.2.3