Made it work again

I moved the data initialization to before the window initialization, and it started scrolling again!