diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-09 07:52:02 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-09 07:52:14 +0000 |
commit | 11ae5399f667aec3fa00d99a0e5eeeeb3bafeb43 (patch) | |
tree | 14a947596637de5ea8abac361ed0a7a5a39b60f0 /javascript/contextMenus.js | |
parent | ea05ddfec879f31ca2a7e171ed4a00ce6b7eb06b (diff) | |
download | stable-diffusion-webui-gfx803-11ae5399f667aec3fa00d99a0e5eeeeb3bafeb43.tar.gz stable-diffusion-webui-gfx803-11ae5399f667aec3fa00d99a0e5eeeeb3bafeb43.tar.bz2 stable-diffusion-webui-gfx803-11ae5399f667aec3fa00d99a0e5eeeeb3bafeb43.zip |
make it so that custom context menu from contextMenu.js only disappears after user's click, ignoring non-user click events
Diffstat (limited to 'javascript/contextMenus.js')
-rw-r--r-- | javascript/contextMenus.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/javascript/contextMenus.js b/javascript/contextMenus.js index 42f301ab..b2bdf053 100644 --- a/javascript/contextMenus.js +++ b/javascript/contextMenus.js @@ -92,8 +92,7 @@ contextMenuInit = function(){ return;
}
gradioApp().addEventListener("click", function(e) {
- let source = e.composedPath()[0]
- if(source.id && source.id.indexOf('check_progress')>-1){
+ if(! e.isTrusted){
return
}
|