rather than checking this, I think you should listen to the scroll event and call `done` in it.