зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1775442 - Remove selection from subtitles settings panel when fullscreen change. r=pip-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D150762
This commit is contained in:
Родитель
70b436796a
Коммит
0e000cdf4c
|
@ -342,6 +342,11 @@ let Player = {
|
||||||
playerBottomControlsDOMRect: this.controlsBottom.getBoundingClientRect(),
|
playerBottomControlsDOMRect: this.controlsBottom.getBoundingClientRect(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
// The subtitles settings panel gets selected when entering/exiting fullscreen even though
|
||||||
|
// user-select is set to none. I don't know why this happens or how to prevent so we just
|
||||||
|
// remove the selection when fullscreen is entered/exited.
|
||||||
|
let selection = window.getSelection();
|
||||||
|
selection.removeAllRanges();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче