fix(UI): Don't allow click on the buttons when the UI is not visible (#8396)

This commit is contained in:
Álvaro Velad Galván
2025-04-04 12:32:17 +02:00
committed by GitHub
parent ecfec60f67
commit ea0790727d
19 changed files with 64 additions and 0 deletions
+3
View File
@@ -127,6 +127,9 @@ shaka.ui.AdStatisticsButton = class extends shaka.ui.Element {
});
this.eventManager.listen(this.button_, 'click', () => {
if (!this.controls.isOpaque()) {
return;
}
this.onClick_();
this.updateLocalizedStrings_();
});