please put `manageScroll` in its own toplevel function (like `handleViewScroll`)

also, please use `ThreadUI.view.addEventListener('scroll')`