Merge pull request #3466 from WoodyLetsCode/fix-effect-jumping

Fix jumping of selected effect on refresh
pull/3480/head
Blaž Kristan 2023-10-22 19:12:49 +02:00 zatwierdzone przez GitHub
commit 3eabefd3d6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 994 dodań i 990 usunięć

Wyświetl plik

@ -1513,12 +1513,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