remove imageMaskFix.js

uiux doesnt suffer from this bug and a window resize event is not cheap
This commit is contained in:
anapnoe
2024-01-31 02:13:58 +02:00
parent 2fbf262719
commit 216a5b512e
+2
View File
@@ -2,6 +2,7 @@
* temporary fix for https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/668
* @see https://github.com/gradio-app/gradio/issues/1721
*/
/*
function imageMaskResize() {
const canvases = gradioApp().querySelectorAll('#img2maskimg .touch-none canvas');
if (!canvases.length) {
@@ -41,3 +42,4 @@ function imageMaskResize() {
onAfterUiUpdate(imageMaskResize);
window.addEventListener('resize', imageMaskResize);
*/