From 6b0a25c15e2d8fe6f464bd1c64a4c843c9af688f Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Tue, 29 Nov 2022 20:43:13 -0300 Subject: [PATCH] remove debug message and fix snap coords Signed-off-by: Victor Seiji Hariki --- js/initalize/debug.populate.js | 4 ++-- js/ui/tool/dream.js | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/js/initalize/debug.populate.js b/js/initalize/debug.populate.js index 20f5452..8e40860 100644 --- a/js/initalize/debug.populate.js +++ b/js/initalize/debug.populate.js @@ -15,8 +15,8 @@ mouse.listen.window.onmousemove.on((evn) => { mouse.listen.world.onmousemove.on((evn) => { canvasXInfo.textContent = evn.x; canvasYInfo.textContent = evn.y; - snapXInfo.textContent = snap(evn.x); - snapYInfo.textContent = snap(evn.y); + snapXInfo.textContent = evn.x + snap(evn.x); + snapYInfo.textContent = evn.y + snap(evn.y); }); /** diff --git a/js/ui/tool/dream.js b/js/ui/tool/dream.js index d05d04b..e8e355d 100644 --- a/js/ui/tool/dream.js +++ b/js/ui/tool/dream.js @@ -647,7 +647,6 @@ const img2imgTool = () => bb.w, state.keepBorderSize ); - console.debug("hey"); } const tmp = ovCtx.globalAlpha;