An ophthalmic device and method actively correcting possible movement of the eye of a patient with respect to the correct positioning during the examination are described. An illumination light beam is provided, that passes through a cross-section of the anterior chamber of the eye to capture an image on the corneal vertex.