diff options
author | Dan Allen <dan@opendevise.com> | 2018-08-12 19:55:11 -0600 |
---|---|---|
committer | Dan Allen <dan@opendevise.com> | 2018-08-12 19:55:11 -0600 |
commit | 63a13fcb6005f7fd35b7fbd8ee7c59a066b2e850 (patch) | |
tree | 9fca46aa6fc92099abbae4db282448e92b06edb0 | |
parent | f2b04df8ef898c33af09e602e556a4ee04a7ee60 (diff) | |
download | alpine-antora-theme-63a13fcb6005f7fd35b7fbd8ee7c59a066b2e850.tar.bz2 alpine-antora-theme-63a13fcb6005f7fd35b7fbd8ee7c59a066b2e850.tar.xz |
debug navigation scrollIntoView
-rw-r--r-- | src/js/01-navigation.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/01-navigation.js b/src/js/01-navigation.js index 29e8e1e..d465c0e 100644 --- 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) { |