mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-11-27 06:40:10 +08:00
little fixes zoom.js
This commit is contained in:
parent
e9b8a89b3c
commit
c3f75d1d85
@ -280,7 +280,7 @@ onUiLoaded(async() => {
|
||||
const targetElement = gradioApp().querySelector(elemId);
|
||||
|
||||
if (!targetElement) {
|
||||
console.log("Element not found");
|
||||
console.log("Element not found", elemId);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -939,9 +939,9 @@ onUiLoaded(async() => {
|
||||
|
||||
}
|
||||
|
||||
elementIDs.sketch && applyZoomAndPan(elementIDs.sketch, false);
|
||||
elementIDs.inpaint && applyZoomAndPan(elementIDs.inpaint, false);
|
||||
elementIDs.inpaintSketch && applyZoomAndPan(elementIDs.inpaintSketch, false);
|
||||
applyZoomAndPan(elementIDs.sketch, false);
|
||||
applyZoomAndPan(elementIDs.inpaint, false);
|
||||
applyZoomAndPan(elementIDs.inpaintSketch, false);
|
||||
|
||||
// Make the function global so that other extensions can take advantage of this solution
|
||||
const applyZoomAndPanIntegration = async(id, elementIDs) => {
|
||||
|
Loading…
Reference in New Issue
Block a user