In step S315, the system controller 50 determines an AF position in a position where the AF frame is currently displayed and records the AF position in the system memory 52. Specifically, the AF position is determined in the position where the AF frame is displayed in step S311 or the position where the AF frame is displayed in step S304 if the touch position has not been shifted from that in step S305. When the determination is negative in step S312, that is, when a tap operation is not performed but the touch is released while the touch position is not shifted, the AF frame is not shifted to the touch position unlike double-tap described below, and therefore, the AF position is not changed even in a case of an undesired touch. Furthermore, although the AF position is changed when the touch is released after the touch position is shifted in step S309, the AF frame is not shifted when the touch is released without a shift of the touch position after the touch, and therefore, the AF position is not changed even when the touch is released. Therefore, even if the nose touch occurs at a time of eye approach, it is difficult to change an AF position since a position of the nose is not largely shifted when compared with a shift of a finger.