Issues related to mouse hovering. And Feature request. #21

This commit is contained in:
anapnoe
2023-03-28 06:46:44 +03:00
parent a25cab7c89
commit 24acf9667b
4 changed files with 29 additions and 2 deletions
+4
View File
@@ -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
+15
View File
@@ -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--){
+8 -1
View File
@@ -4547,7 +4547,7 @@ input[type=range]::-ms-fill-upper {
}
@media (max-width: 500px) {
.spl-header div {
width: 44px;
width: 32px;
}
.spl-footer .spl-title {
font-size: 20px;
@@ -4565,6 +4565,13 @@ input[type=range]::-ms-fill-upper {
.spl-spinner {
background-size: 30px 30px;
}
.spl-brush{
width: 60px !important;
padding-left: 10px;
}
.spl-fullscreen{
display:inline-block !important;
}
}
.hide-scrollbars {
overflow: hidden !important;