mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 21:30:09 +08:00
Temporary fix that returns functionality when sending via buttons
This commit is contained in:
parent
733f8c7c51
commit
a08eff391e
@ -945,6 +945,28 @@ onUiLoaded(async() => {
|
||||
|
||||
window.applyZoomAndPanIntegration = applyZoomAndPanIntegration; // for any extension
|
||||
|
||||
|
||||
const img2imgArean = document.querySelector("#img2img_settings")
|
||||
img2imgArean.addEventListener("mousemove",(e) => {
|
||||
const tabId = getTabId(elements)
|
||||
|
||||
|
||||
// Check for tooltip
|
||||
if (tabId == "#img2img_sketch" ||tabId == "#inpaint_sketch" || tabId == "#img2maskimg" ) {
|
||||
const zoomTooltip = document.querySelector(`${tabId} .canvas-tooltip`)
|
||||
|
||||
// If tooltip removed we again add zoom functionality
|
||||
if(!zoomTooltip) {
|
||||
console.log("added")
|
||||
applyZoomAndPan(tabId,false)
|
||||
} else {
|
||||
console.log("Not added")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
/*
|
||||
The function `applyZoomAndPanIntegration` takes two arguments:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user