Cleanup scroll handler code.