Clarify comments.
This commit is contained in:
parent
0e6e15e8e5
commit
7a8969610b
@ -379,8 +379,8 @@ function locationHashChanged () {
|
|||||||
$('#' + divid + 'pane').show() // Switch to active pane
|
$('#' + divid + 'pane').show() // Switch to active pane
|
||||||
|
|
||||||
if (divid === 'browse' && browseStack.length > 0) {
|
if (divid === 'browse' && browseStack.length > 0) {
|
||||||
window.scrollTo(0, browseStack[browseStack.length - 1].scrollPos || 0) // Restore scroll position
|
window.scrollTo(0, browseStack[browseStack.length - 1].scrollPos || 0) // Restore scroll position - browsing library.
|
||||||
} else if (typeof pageScrollPos[divid] !== 'undefined') { // Set scroll position
|
} else if (typeof pageScrollPos[divid] !== 'undefined') { // Restore scroll position - pages
|
||||||
window.scrollTo(0, pageScrollPos[divid])
|
window.scrollTo(0, pageScrollPos[divid])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user