mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 21:30:09 +08:00
fix caused unnecessary borders when the cursor leaves the drawing area
This commit is contained in:
parent
02e9c79ec5
commit
9ccdbe2f84
@ -437,8 +437,6 @@ onUiLoaded(async() => {
|
|||||||
targetElement.style.overflow = "visible";
|
targetElement.style.overflow = "visible";
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("ZoomUpdated")
|
|
||||||
|
|
||||||
// Hack to make the cursor always be the same size
|
// Hack to make the cursor always be the same size
|
||||||
fixCursorSize()
|
fixCursorSize()
|
||||||
|
|
||||||
@ -833,16 +831,14 @@ onUiLoaded(async() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
activeCursor = activeCursorCopy;
|
activeCursor = activeCursorCopy;
|
||||||
activeCursor.style.display = "block";
|
// activeCursor.style.display = "none";
|
||||||
|
activeCursor.style.position = "absolute"
|
||||||
}
|
}
|
||||||
|
|
||||||
const canvasAreaEventsHandler = e => {
|
const canvasAreaEventsHandler = e => {
|
||||||
|
|
||||||
canvasCursors.forEach(cursor => cursor.style.display = "none");
|
canvasCursors.forEach(cursor => cursor.style.display = "none");
|
||||||
|
|
||||||
paintCursorCopy.style.display = "block";
|
|
||||||
eraserCursorCopy.style.display = "block";
|
|
||||||
|
|
||||||
if (!activeCursor) return;
|
if (!activeCursor) return;
|
||||||
|
|
||||||
const cursorNum = eraseButton.classList.contains("active") ? 1 : 0;
|
const cursorNum = eraseButton.classList.contains("active") ? 1 : 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user