there goes magic. I don't know whats wrong

scrolling works sometimes even though i changed nothing in the code.