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

Fix jumping of selected effect on refresh
This commit is contained in:
Blaž Kristan 2023-10-22 19:12:49 +02:00 committed by GitHub
commit 3eabefd3d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 994 additions and 990 deletions

View File

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

File diff suppressed because it is too large Load Diff