fix effect jumping on refresh

fix effect jumping on refresh

fix jumping of selected effect on refresh
This commit is contained in:
Woody 2023-10-20 11:25:07 +02:00
parent 1dab26bcbc
commit c7d399c122
No known key found for this signature in database
GPG Key ID: 9872D7F5072789B2
2 changed files with 583 additions and 580 deletions

View File

@ -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 = '';

File diff suppressed because it is too large Load Diff