From 9ccdbe2f84a3c04e9e3f718cef71da2fd4438a6d Mon Sep 17 00:00:00 2001 From: Danil Boldyrev Date: Fri, 2 Feb 2024 01:40:25 +0300 Subject: [PATCH] fix caused unnecessary borders when the cursor leaves the drawing area --- extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js b/extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js index 38937d158..a3bb28c01 100644 --- a/extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js +++ b/extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js @@ -437,8 +437,6 @@ onUiLoaded(async() => { targetElement.style.overflow = "visible"; } - console.log("ZoomUpdated") - // Hack to make the cursor always be the same size fixCursorSize() @@ -833,16 +831,14 @@ onUiLoaded(async() => { } activeCursor = activeCursorCopy; - activeCursor.style.display = "block"; + // activeCursor.style.display = "none"; + activeCursor.style.position = "absolute" } const canvasAreaEventsHandler = e => { canvasCursors.forEach(cursor => cursor.style.display = "none"); - paintCursorCopy.style.display = "block"; - eraserCursorCopy.style.display = "block"; - if (!activeCursor) return; const cursorNum = eraseButton.classList.contains("active") ? 1 : 0;