mirror of
https://github.com/anapnoe/stable-diffusion-webui-ux.git
synced 2026-09-19 01:05:13 +02:00
Issues related to mouse hovering. And Feature request. #21
This commit is contained in:
@@ -47,6 +47,10 @@ titles = {
|
||||
"Skip": "Stop processing current image and continue processing.",
|
||||
"Interrupt": "Stop processing images and return any results accumulated so far.",
|
||||
"Save": "Write image to a directory (default - log/images) and generation parameters into csv file.",
|
||||
"Zip": "Save as Zip",
|
||||
"Send to img2img": "Send to img2img",
|
||||
"Send to inpaint": "Send to inpaint",
|
||||
"Send to extras": "Send to extras",
|
||||
|
||||
"X values": "Separate values for X axis using commas.",
|
||||
"Y values": "Separate values for Y axis using commas.",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -910,6 +910,8 @@ onUiUpdate(function(){
|
||||
|
||||
// input release component dispatcher
|
||||
let active_clone_input = [];
|
||||
let focus_input;
|
||||
|
||||
function ui_input_release_component(elem){
|
||||
|
||||
if(active_clone_input.length > 0) return;
|
||||
@@ -934,6 +936,14 @@ onUiUpdate(function(){
|
||||
elem.value = clone_num.value;
|
||||
updateInput(elem);
|
||||
})
|
||||
|
||||
clone_num.addEventListener('focus', function (e) {
|
||||
focus_input = true;
|
||||
})
|
||||
|
||||
clone_num.addEventListener('blur', function (e) {
|
||||
focus_input = false;
|
||||
})
|
||||
|
||||
if(label){
|
||||
let comp_range = comp_parent.querySelector("input[type='range']");
|
||||
@@ -959,6 +969,11 @@ onUiUpdate(function(){
|
||||
}
|
||||
function ui_input_release_handler(e){
|
||||
const len = active_clone_input.length;
|
||||
|
||||
if(focus_input){
|
||||
return;
|
||||
}
|
||||
|
||||
if(len > 0){
|
||||
if(e.target.id.indexOf("_clone") == -1){
|
||||
for(var i=len-1; i>=0; i--){
|
||||
|
||||
Reference in New Issue
Block a user