mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
adjust timeout
This commit is contained in:
@@ -323,6 +323,8 @@ class ZenMediaController {
|
||||
}
|
||||
|
||||
if (this.mediaControllersMap.size === 1) timeout = 0;
|
||||
if (this.mediaControlBar.hasAttribute('hidden')) timeout = 0;
|
||||
|
||||
this._controllerSwitchTimeout = setTimeout(() => {
|
||||
if (!this._currentMediaController?.isPlaying || force) {
|
||||
const nextController = Array.from(this.mediaControllersMap.values())
|
||||
|
Reference in New Issue
Block a user