projects
/
working
/
eg-antora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b04df
)
debug navigation scrollIntoView
author
Dan Allen
<dan@opendevise.com>
Mon, 13 Aug 2018 01:55:11 +0000
(19:55 -0600)
committer
Dan Allen
<dan@opendevise.com>
Mon, 13 Aug 2018 01:55:11 +0000
(19:55 -0600)
src/js/01-navigation.js
patch
|
blob
|
history
diff --git
a/src/js/01-navigation.js
b/src/js/01-navigation.js
index
29e8e1e
..
d465c0e
100644
(file)
--- a/
src/js/01-navigation.js
+++ b/
src/js/01-navigation.js
@@
-134,6
+134,8
@@
}
function scrollItemIntoView (scrollPosition, parent, el) {
+ console.log('scrolling item into view')
+ console.log(el)
if (!el) return (parent.scrollTop = scrollPosition)
var margin = 10
@@
-147,6
+149,7
@@
} else {
parent.scrollTop = scrollPosition
}
+ console.log('set scrollTop to ' + parent.scrollTop)
}
function find (selector, from) {