The travelling microscope moves horizontally on a main scale provided with the vernier scale provided with the microscope that's why, In a travelling microscope to find the refractive index of glass we measure distance by a vernier scale provided on the microscope.