MCPcopy Index your code
hub / github.com/electerious/basicScroll / repeat

Function repeat

src/scripts/main.js:331–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330 // Continue loop
331 const repeat = () => {
332
333 // It depends on the browser, but it turns out that closures
334 // are sometimes faster than .bind or .apply.
335 requestAnimationFrame(() => loop(style, previousScrollTop))
336
337 }
338
339 // Get all active instances
340 const activeInstances = getActiveInstances(instances)

Callers 1

loopFunction · 0.85

Calls 1

loopFunction · 0.85

Tested by

no test coverage detected