Fix scrolling to top of board when navlinks are hidden. nebukazar/OneeChan#74
This commit is contained in:
parent
b71debdc56
commit
f92a21e9ab
@ -268,7 +268,8 @@ Index =
|
|||||||
Index.update()
|
Index.update()
|
||||||
|
|
||||||
scrollToIndex: ->
|
scrollToIndex: ->
|
||||||
Header.scrollToIfNeeded Index.navLinks
|
# Scroll to navlinks, or top of board if navlinks are hidden.
|
||||||
|
Header.scrollToIfNeeded (if Index.navLinks.getBoundingClientRect().height then Index.navLinks else Index.root)
|
||||||
|
|
||||||
getCurrentPage: ->
|
getCurrentPage: ->
|
||||||
+window.location.pathname.split(/\/+/)[2] or 1
|
+window.location.pathname.split(/\/+/)[2] or 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user