()
| 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) |