Check if control is already hidden

This commit is contained in:
Slowlife01
2025-03-14 19:00:04 +07:00
parent e281a18ec7
commit 39c956829a

View File

@@ -39,7 +39,7 @@ class ZenMediaController {
.then(() => {
this.mediaControlBar.setAttribute('hidden', 'true');
});
} else {
} else if (this.mediaControlBar.hasAttribute('hidden')) {
this.mediaControlBar.removeAttribute('hidden');
window.requestAnimationFrame(() => {
this.mediaControlBar.style.height =