An electronic device, comprising: an image-capturing device that captures an image of a subject in an image-capturing region and outputs an image signal; a projector device that projects a projection image in a projection region on a screen that is remote from a body, the projection image corresponding to projection image data formed by an optical image formation element, and the projector device and the image-capturing device being housed integrally within a body; a range change unit that changes one of a size of the image-capturing region during the projector device projecting the projection image and a size of a projection region during the projector device projecting the projection image so that the image-capturing region of the image-capturing device and the projection region of the projector device do not coincide with one another; a calculation unit that calculates an amount of movement of the image signal with time by using the image signal output from an image signal extraction region corresponding to the image of the subject excluding the projection region of the projector device; and a correction unit that corrects a position of the projection image according to the calculated amount of movement in order to correct a vibration of the projection image, wherein if the image signal is such that the amount of movement cannot be calculated by the calculation unit, and the image-capturing region includes the screen, the projector device narrows down the projection region, the image-capturing device widens the image-capturing region, and the calculation unit widens the image signal extraction region so as to calculate the amount of movement by using the widened image signal extraction region. an image-capturing device that captures an image of a subject in an image-capturing region and outputs an image signal; a projector device that projects a projection image in a projection region on a screen that is remote from a body, the projection image corresponding to projection image data formed by an optical image formation element, and the projector device and the image-capturing device being housed integrally within a body; a range change unit that changes one of a size of the image-capturing region during the projector device projecting the projection image and a size of a projection region during the projector device projecting the projection image so that the image-capturing region of the image-capturing device and the projection region of the projector device do not coincide with one another; a calculation unit that calculates an amount of movement of the image signal with time by using the image signal output from an image signal extraction region corresponding to the image of the subject excluding the projection region of the projector device; and a correction unit that corrects a position of the projection image according to the calculated amount of movement in order to correct a vibration of the projection image, wherein if the image signal is such that the amount of movement cannot be calculated by the calculation unit, and the image-capturing region includes the screen, the projector device narrows down the projection region, the image-capturing device widens the image-capturing region, and the calculation unit widens the image signal extraction region so as to calculate the amount of movement by using the widened image signal extraction region.