disable scrolling for embedded videos (#2679)

This commit is contained in:
Bnyro 2023-07-17 17:30:47 +02:00 committed by GitHub
parent 16dae165df
commit 1d7036a30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -363,6 +363,7 @@ export default {
this.getPlaylistData();
this.getSponsors();
if (!this.isEmbed && this.showComments) this.getComments();
if (this.isEmbed) document.querySelector("html").style.overflow = "hidden";
window.addEventListener("click", this.handleClick);
window.addEventListener("resize", () => {
this.smallView = this.smallViewQuery.matches;