replace existing image via paste or drop in inpaint mode (fixes #649)

This commit is contained in:
Connum 2022-09-18 20:00:51 +02:00
parent 21086e60a9
commit ce47976249
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) {