mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-10 00:31:19 -07:00
place the cursor next to the original
This commit is contained in:
parent
7eda3319de
commit
b389727e31
1 changed files with 8 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue