mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-13 15:46:46 +03:00
fix(UI): Don't allow click on the buttons when the UI is not visible (#8396)
This commit is contained in:
committed by
GitHub
parent
ecfec60f67
commit
ea0790727d
@@ -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_();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user