fix caused unnecessary borders when the cursor leaves the drawing area

This commit is contained in:
Danil Boldyrev 2024-02-02 01:40:25 +03:00
parent 02e9c79ec5
commit 9ccdbe2f84

View File

@ -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;