mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-24 07:28:13 +02:00
Modale : couper les transitions differees au retour a l'ecran
This commit is contained in:
1 parent
76d0d16062
commit
8d92db6e33
3 files changed
+20
-2
No files matched your search
@@ -132,8 +132,12 @@ async function openItem(kind, key){
|
||||
await Promise.all([populateBackend(), populateModelPicker()]);
|
||||
if(seq !== openSeq) return;
|
||||
}
|
||||
document.getElementById('modal').classList.remove('loading');
|
||||
// On lève le voile SANS transition (voir la note dans styles.css), puis on rend
|
||||
// les transitions deux frames plus tard, une fois le nouvel état peint.
|
||||
modalEl.classList.add('no-anim');
|
||||
modalEl.classList.remove('loading');
|
||||
topPeBody();
|
||||
requestAnimationFrame(()=>requestAnimationFrame(()=>modalEl.classList.remove('no-anim')));
|
||||
}
|
||||
|
||||
// Pretty-print bytes — handy for the dropdown options.
|
||||
|
||||
Reference in new issue
Block a user