projects
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b82be7
)
slightly increase scroll spy buffer above heading
author
Dan Allen
<dan@opendevise.com>
Thu, 9 Apr 2020 09:39:36 +0000
(
03:39
-0600)
committer
Dan Allen
<dan@opendevise.com>
Thu, 9 Apr 2020 09:39:36 +0000
(
03:39
-0600)
src/js/02-on-this-page.js
patch
|
blob
|
history
diff --git
a/src/js/02-on-this-page.js
b/src/js/02-on-this-page.js
index
0ede389
..
9d24937
100644
(file)
--- a/
src/js/02-on-this-page.js
+++ b/
src/js/02-on-this-page.js
@@
-52,7
+52,7
@@
function onScroll () {
var scrolledBy = window.pageYOffset
- var buffer = getStyleValueAsInt(document.documentElement, 'fontSize')
+ var buffer = getStyleValueAsInt(document.documentElement, 'fontSize')
* 1.15
var targetPosition = article.offsetTop
if (scrolledBy && window.innerHeight + scrolledBy + 2 >= document.documentElement.scrollHeight) {
if (lastActiveFragment) {