Remove unnecessary condition in scroll handler