disable scrolling for embedded videos

This commit is contained in:
Bnyro 2023-07-17 17:14:36 +02:00
parent 7317fc9a75
commit 2315432ed6

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;