From 42342720e16527202b17ffdde8b4196e68a4f83a Mon Sep 17 00:00:00 2001 From: rveciana Date: Tue, 31 May 2016 13:45:03 +0200 Subject: [PATCH] Adding the progress event information --- graph-scroll.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/graph-scroll.js b/graph-scroll.js index 7948e36..90c9701 100644 --- a/graph-scroll.js +++ b/graph-scroll.js @@ -37,6 +37,13 @@ function graphScroll() { isFixed = isFixed1 graph.classed('graph-scroll-fixed', isFixed) } + + var pos = pageYOffset - 10 - containerStart; + var prevTop = sectionPos[i]; + var nextTop = (i+1=0 && progress <=1) + dispatch.scroll(i, progress); } function resize(){