replace existing image via paste or drop in inpaint mode (fixes #649)
This commit is contained in:
parent
21086e60a9
commit
ce47976249
2
javascript/dragdrop.js
vendored
2
javascript/dragdrop.js
vendored
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user