An electronic device according to the present invention is an electronic device capable of acquiring an eye image by capturing an image of an eye looking at a screen of a display through an eye window frame, and includes at least one memory and at least one processor which function as: an estimating unit configured to estimate a viewed point of the eye on the screen on a basis of the eye image; and a detecting unit configured to detect a shifted viewing state in which the eye shifts from a position corresponding to a center of the screen on the eye image, on a basis of a position of a pupil image or a Purkinje image on the eye image.
ELECTRONIC DEVICE, CONTROL METHOD, AND NON-TRANSITORY COMPUTER READABLE MEDIUM