From 1d7036a30b915b0f0daf6d2bae17308890a89778 Mon Sep 17 00:00:00 2001 From: Bnyro <82752168+Bnyro@users.noreply.github.com> Date: Mon, 17 Jul 2023 17:30:47 +0200 Subject: [PATCH] disable scrolling for embedded videos (#2679) --- src/components/WatchVideo.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 711715f1..c6b9721a 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -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;