scroll the nextVideo into the top

pull/2497/head
diogo 3 years ago committed by Samantaz Fox
parent 0a9e19646a
commit f13fb80b42
No known key found for this signature in database
GPG Key ID: F42821059186176E

@ -149,6 +149,8 @@ function get_playlist(plid, retries) {
if (xhr.readyState == 4) {
if (xhr.status == 200) {
playlist.innerHTML = xhr.response.playlistHtml;
var nextVideo = document.getElementById(xhr.response.nextVideo);
nextVideo.parentNode.parentNode.scrollTop = nextVideo.offsetTop;
if (xhr.response.nextVideo) {
player.on('ended', function () {

Loading…
Cancel
Save