diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index a80d22f..56e5a77 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -20472,6 +20472,10 @@ class PlexMeetsHomeAssistant extends HTMLElement { videobg2.classList.remove('transparent'); this.videoElem.classList.remove('maxZIndex'); video.controls = false; + window.scroll({ + top: getOffset(this.activeMovieElem).top - 70, + behavior: 'smooth' + }); } } }); diff --git a/src/plex-meets-homeassistant.ts b/src/plex-meets-homeassistant.ts index e7ada20..ac41199 100644 --- a/src/plex-meets-homeassistant.ts +++ b/src/plex-meets-homeassistant.ts @@ -876,6 +876,10 @@ class PlexMeetsHomeAssistant extends HTMLElement { this.videoElem.classList.remove('maxZIndex'); video.controls = false; + window.scroll({ + top: getOffset(this.activeMovieElem as Element).top - 70, + behavior: 'smooth' + }); } } });