Merge branch 'fix-effect-jumping' into 0_14_1

This commit is contained in:
Woody 2023-10-22 18:19:15 +02:00 committed by GitHub
commit 0b28107432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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