summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2024-03-25 13:10:02 +0200
committerMartial Simon <msimon_fr@hotmail.com>2024-03-25 13:10:02 +0200
commit7913792a6a9c5b651e7caa79fe4f0610272e0f58 (patch)
treee7a233122e690d9eabb1b1ba90db2744e09577f4 /index.js
parent5b759155d891fb8348d0b6a44f794db345127a45 (diff)
feat: mqtt client
Diffstat (limited to 'index.js')
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 8dabb25..4498115 100644
--- a/index.js
+++ b/index.js
@@ -47,8 +47,8 @@ const drawCross = (x, y) => {
canvas.addEventListener('mousedown', (e) => {
isPainting = true;
-
drawCross(e.clientX - canvasOffsetX, e.clientY - canvasOffsetY);
+
});
/* canvas.addEventListener('mouseup', (e) => {