Skip to content

Commit

Permalink
fix(FEC-12121): youtube UI is not responsive for clicks (#664)
Browse files Browse the repository at this point in the history
add z-index=1 when youtube engine element is loaded to the ui, to allow clicks on youtube's ui.

Solves FEC-12121
  • Loading branch information
lianbenjamin committed Sep 11, 2022
1 parent b213ab7 commit 39300fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1788,6 +1788,9 @@ export default class Player extends FakeEventTarget {
const classNameWithId = `${ENGINE_CLASS_NAME}-${this._engine.id}`;
Utils.Dom.addClassName(engineEl, classNameWithId);
Utils.Dom.prependTo(engineEl, this._el);
if (this._engine.id === 'youtube') {
this._el.style.zIndex = 1;
}
}
}

Expand Down

0 comments on commit 39300fd

Please sign in to comment.