It isn't. The horizontal and vertical velocities are separate. You separate that velocity into the horizontal component which is constant, disregarding air resistance, and vertical velocity which is changed by the acceleration due to gravity. Make calculations separately because they do not influence each other.