MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / scrollTopTween

Function scrollTopTween

modules/toc/toc.js:247–252  ·  view source on GitHub ↗
(scrollTop)

Source from the content-addressed store, hash-verified

245 }
246
247 function scrollTopTween(scrollTop) {
248 return function() {
249 var i = d3.interpolateNumber(this.scrollTop, scrollTop);
250 return function(t) { this.scrollTop = i(t); };
251 };
252 }
253
254})();

Callers 2

renderHistogramFunction · 0.85
renderTOCFunction · 0.85

Calls 1

iFunction · 0.50

Tested by

no test coverage detected