diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 292aa5a..ce0eca9 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20033,7 +20033,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { this.loadInitialData = async () => { window.addEventListener('scroll', () => { // todo: improve performance by calculating this when needed only - if (this.detailsShown && this.activeMovieElem) { + if (this.detailsShown && this.activeMovieElem && !isVideoFullScreen(this)) { const seasonContainers = this.getElementsByClassName('seasonContainer'); const episodeContainers = this.getElementsByClassName('episodeContainer'); const seasonElems = this.getElementsByClassName('seasonElem'); diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index 2f8d0eb..ad525f3 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -152,7 +152,7 @@ class PlexMeetsHomeAssistant extends HTMLElement { loadInitialData = async (): Promise => { window.addEventListener('scroll', () => { // todo: improve performance by calculating this when needed only - if (this.detailsShown && this.activeMovieElem) { + if (this.detailsShown && this.activeMovieElem && !isVideoFullScreen(this)) { const seasonContainers = this.getElementsByClassName('seasonContainer') as HTMLCollectionOf; const episodeContainers = this.getElementsByClassName('episodeContainer') as HTMLCollectionOf; const seasonElems = this.getElementsByClassName('seasonElem') as HTMLCollectionOf;