mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
disable scrolling for embedded videos (#2679)
This commit is contained in:
parent
16dae165df
commit
1d7036a30b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue