Fix #830 scroll problem.

This commit is contained in:
Zixaphir 2015-01-20 16:52:52 -07:00
parent 310c5933ae
commit 2bd86b1acd
4 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -354,7 +354,7 @@ Header =
hashScroll: ->
hash = @location.hash[1..]
return unless /^p\d+$/.test(hash) and post = $.id hash
return if !(post = Get.postFromRoot post) or post.isHidden
return if (Get.postFromNode post).isHidden
Header.scrollTo post
scrollTo: (root, down, needed) ->

View File

@ -437,6 +437,10 @@ nav a,
}
#header-bar #scroll-marker {
display: none;
left: 0;
right: 0;
height: 10px;
position: absolute;
}
#header-bar:not(.autohide) #scroll-marker {
pointer-events: none;