From 63a13fcb6005f7fd35b7fbd8ee7c59a066b2e850 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Sun, 12 Aug 2018 19:55:11 -0600 Subject: [PATCH] debug navigation scrollIntoView --- src/js/01-navigation.js | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.11.0