Moved cursor_position_in_world handling to the end of process_input to consider the scroll the user just might made.