An ophthalmic apparatus (1) is provided with an optometry part (3) including an observation optical system (60) for observation of an anterior segment of an examinees eye (E) and an examination optical system (30, 200, 300) for obtaining examination information of the examinees eye, a drive part (6, 49, 124a) for driving the optometry party, a drive control part (70) for controlling driving of the drive part, an image output part (70) for outputting an anterior-segment image to a display part (75), a first detection part (70, 75b) for detecting a moving direction and a moving amount when a designated point designated on a touch panel (75b) allowing designation of any position on a screen of the display part, and a second detection part (70, 75b) for detecting a change in relative distance between and a rotating amount of two designated points designated on the touch panel. The drive control part performs first drive control to drive the optometry part in a direction perpendicular to an optical axis of the optometry part when the first detection part detects movement of the designated point and second drive control to drive the optometry part in a direction of the optical axis when the second detection part detects relative movement of the two designated points.