you should put these 2 lines in the `setup` (and replace isScrolledManually by just dispatching a scroll event, should set it)