diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-18 19:38:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 19:38:52 +0000 |
commit | 8e3caace7445f8373c950edb6e414c4cdc75823b (patch) | |
tree | 5949a0d716914e6e759aa7ebf2571d1607ecb346 /javascript | |
parent | f3d83fd68ab2458f0a24fb242e557b95c1294bb1 (diff) | |
parent | ce47976249011c49ca3687945b24bdb25c72ca03 (diff) | |
download | stable-diffusion-webui-gfx803-8e3caace7445f8373c950edb6e414c4cdc75823b.tar.gz stable-diffusion-webui-gfx803-8e3caace7445f8373c950edb6e414c4cdc75823b.tar.bz2 stable-diffusion-webui-gfx803-8e3caace7445f8373c950edb6e414c4cdc75823b.zip |
Merge pull request #672 from 48design/fix-inpaint-dragdrop-paste
replace existing image via paste or drop in inpaint mode (fixes #649)
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/dragdrop.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/dragdrop.js b/javascript/dragdrop.js index 0dddea88..4cd05151 100644 --- a/javascript/dragdrop.js +++ b/javascript/dragdrop.js @@ -9,7 +9,7 @@ function dropReplaceImage( imgWrap, files ) { return; } - imgWrap.querySelector('.modify-upload button + button')?.click(); + imgWrap.querySelector('.modify-upload button + button, .touch-none + div button + button')?.click(); window.requestAnimationFrame( () => { const fileInput = imgWrap.querySelector('input[type="file"]'); if ( fileInput ) { |