From ce47976249011c49ca3687945b24bdb25c72ca03 Mon Sep 17 00:00:00 2001 From: Connum Date: Sun, 18 Sep 2022 20:00:51 +0200 Subject: [PATCH] replace existing image via paste or drop in inpaint mode (fixes #649) --- javascript/dragdrop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/dragdrop.js b/javascript/dragdrop.js index 0dddea883..4cd051511 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 ) {