Fix #830 scroll problem.
This commit is contained in:
parent
310c5933ae
commit
2bd86b1acd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -354,7 +354,7 @@ Header =
|
|||||||
hashScroll: ->
|
hashScroll: ->
|
||||||
hash = @location.hash[1..]
|
hash = @location.hash[1..]
|
||||||
return unless /^p\d+$/.test(hash) and post = $.id hash
|
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
|
Header.scrollTo post
|
||||||
|
|
||||||
scrollTo: (root, down, needed) ->
|
scrollTo: (root, down, needed) ->
|
||||||
|
|||||||
@ -437,6 +437,10 @@ nav a,
|
|||||||
}
|
}
|
||||||
#header-bar #scroll-marker {
|
#header-bar #scroll-marker {
|
||||||
display: none;
|
display: none;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 10px;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
#header-bar:not(.autohide) #scroll-marker {
|
#header-bar:not(.autohide) #scroll-marker {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user