From 39300fd634e4d69f458181fdbc1973336314ed1a Mon Sep 17 00:00:00 2001 From: lianbenjamin <79077248+lianbenjamin@users.noreply.github.com> Date: Sun, 11 Sep 2022 14:27:05 +0300 Subject: [PATCH] fix(FEC-12121): youtube UI is not responsive for clicks (#664) add z-index=1 when youtube engine element is loaded to the ui, to allow clicks on youtube's ui. Solves FEC-12121 --- src/player.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/player.js b/src/player.js index fc1f58366..b307c9123 100644 --- a/src/player.js +++ b/src/player.js @@ -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; + } } }