Clarify comments.

This commit is contained in:
jcass 2017-01-22 15:52:07 +02:00
parent 0e6e15e8e5
commit 7a8969610b

View File

@ -379,8 +379,8 @@ function locationHashChanged () {
$('#' + divid + 'pane').show() // Switch to active pane
if (divid === 'browse' && browseStack.length > 0) {
window.scrollTo(0, browseStack[browseStack.length - 1].scrollPos || 0) // Restore scroll position
} else if (typeof pageScrollPos[divid] !== 'undefined') { // Set scroll position
window.scrollTo(0, browseStack[browseStack.length - 1].scrollPos || 0) // Restore scroll position - browsing library.
} else if (typeof pageScrollPos[divid] !== 'undefined') { // Restore scroll position - pages
window.scrollTo(0, pageScrollPos[divid])
}