Better viewing of playlist on playing on a small screen

- Playlist-height adapts in case video is playing, allowing users to still easily scroll through videos while it is playing
This commit is contained in:
Kasper Rynning-Tønnesen
2018-06-23 12:54:11 +02:00
parent 6f58e9514c
commit a9eaa282a5
4 changed files with 56 additions and 2 deletions

View File

@@ -139,6 +139,9 @@ var Player = {
if(embed) {
Helper.css("#player", "visibility", "visible");
}
if(!embed && !client && window.location.pathname != "/") {
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING);
}
if(embed && !autoplay) autoplay = true;
if(!window.MSStream) {
Helper.css("#player", "opacity", "1");
@@ -199,6 +202,9 @@ var Player = {
if(gotten_np) gotten_np = false;
if(window.location.pathname != "/") Playercontrols.play_pause_show();
mobile_beginning = true;
if(!embed && !client && window.location.pathname != "/") {
resizePlaylistPlaying(newState.data == YT.PlayerState.PLAYING);
}
}
}
/*if(Helper.mobilecheck()) {