Just an idea if you want to take :)

```js
var deltaLatency = scrollLatency - Date.now() + lastScrollTime; 
if (deltaLatency > 0) {
  scrollTimer = window.setTimeout(updateFromScroll, deltaLatency);
} else {
  update();
}
```