Skip to content

Commit 95cf682

Browse files
authored
fix(UI): Fix visibility events on the UI (#8619)
1 parent ffd048c commit 95cf682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/controls.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
136136
// the menus.
137137
this.hideSettingsMenusTimer_.tickAfter(
138138
/* seconds= */ this.config_.closeMenusDelay);
139-
140-
this.dispatchVisibilityEvent_();
141139
});
142140

143141
/**
@@ -153,6 +151,8 @@ shaka.ui.Controls = class extends shaka.util.FakeEventTarget {
153151
for (const menu of this.menus_) {
154152
shaka.ui.Utils.setDisplay(menu, /* visible= */ false);
155153
}
154+
155+
this.dispatchVisibilityEvent_();
156156
});
157157

158158
/**

0 commit comments

Comments
 (0)