mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 21:30:09 +08:00
place the cursor next to the original
This commit is contained in:
parent
7eda3319de
commit
b389727e31
@ -785,10 +785,14 @@ onUiLoaded(async() => {
|
||||
|
||||
canvasCursors.forEach(cursor => cursor.style.display = "none");
|
||||
|
||||
targetElement.appendChild(paintCursorCopy);
|
||||
canvasCursors[0].parentNode.insertBefore(paintCursorCopy, canvasCursors[0].nextSibling);
|
||||
canvasCursors[1].parentNode.insertBefore(eraserCursorCopy, canvasCursors[1].nextSibling);
|
||||
|
||||
|
||||
// targetElement.appendChild(paintCursorCopy);
|
||||
paintCursorCopy.style.display = "none";
|
||||
|
||||
targetElement.appendChild(eraserCursorCopy);
|
||||
// targetElement.appendChild(eraserCursorCopy);
|
||||
eraserCursorCopy.style.display = "none";
|
||||
|
||||
let activeCursor;
|
||||
@ -805,6 +809,8 @@ onUiLoaded(async() => {
|
||||
activeButton.classList.add("active");
|
||||
inactiveButton.classList.remove("active");
|
||||
|
||||
// canvasCursors.forEach(cursor => cursor.style.display = "none");
|
||||
|
||||
if (activeCursor) {
|
||||
activeCursor.style.display = "none";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user