Fix broken switch statement in handle_scroll.