Skip to content

Commit

Permalink
little fixes zoom.js
Browse files Browse the repository at this point in the history
  • Loading branch information
light-and-ray committed Mar 17, 2024
1 parent e9b8a89 commit c3f75d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit c3f75d1

Please sign in to comment.