From 405061634550d1d254f9bd5dfa158858fb263450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Nyi=CC=81ri?= Date: Sun, 6 Jun 2021 16:58:18 +0200 Subject: [PATCH] Fix: Android scroll position on ending fullscreen playback --- dist/plex-meets-homeassistant.js | 4 ++++ src/plex-meets-homeassistant.ts | 4 ++++ 2 files changed, 8 insertions(+) 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' + }); } } });