Commit ce479762 authored by Connum's avatar Connum

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

parent 21086e60
......@@ -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 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment