Skip to content

Commit a2504fe

Browse files
committed
[playerlib.js] Fix artost auto-scroll
After page refresh on or to tag view the highlighted artist is not automatically scrolled to and clicked/highlighted unless an album was also selected.
1 parent 81fe6c5 commit a2504fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

www/js/playerlib.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4638,7 +4638,7 @@ function lazyLode(view) {
46384638
var albumPos = UI.libPos[0];
46394639
var albumCoverPos = UI.libPos[1];
46404640

4641-
if (view == 'tag' && UI.libPos[0] >= 0) {
4641+
if (view == 'tag') {
46424642
if (UI.libPos[2] >= 0) {
46434643
customScroll('artists', UI.libPos[2], scrollSpeed);
46444644
$('#artistsList .lib-entry').eq(UI.libPos[2]).addClass('active');
@@ -4663,7 +4663,7 @@ function lazyLode(view) {
46634663
customScroll('playlist', UI.playlistPos, scrollSpeed);
46644664
}
46654665
// DEBUG:
4666-
//console.log('lazyLode(): UI.rflpPos:', UI.radioPos, UI.folderPos, UI.libPos, UI.playlistPos);
4666+
//console.log('lazyLode(): UI.rflpPos:', UI.radioPos, UI.folderPos, UI.libPos, UI.playlistPos);
46674667
}, LAZYLOAD_TIMEOUT);
46684668
}
46694669

0 commit comments

Comments
 (0)