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:
@@ -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