fix effect jumping on refresh

fix effect jumping on refresh

fix jumping of selected effect on refresh
pull/3466/head
Woody 2023-10-20 11:25:07 +02:00
rodzic 1dab26bcbc
commit c7d399c122
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 9872D7F5072789B2
2 zmienionych plików z 583 dodań i 580 usunięć

Wyświetl plik

@ -1514,12 +1514,15 @@ function setEffectParameters(idx)
}
// set the bottom position of selected effect (sticky) as the top of sliders div
setInterval(()=>{
function setSelectedEffectPosition() {
let top = parseInt(getComputedStyle(gId("sliders")).height);
top += 5;
let sel = d.querySelector('#fxlist .selected');
if (sel) sel.style.bottom = top + "px"; // we will need to remove this when unselected (in setFX())
},750);
}
setSelectedEffectPosition();
setInterval(setSelectedEffectPosition,750);
// set html color items on/off
var cslLabel = '';
var sep = '';

Plik diff jest za duży Load Diff