Electronic apparatus and control method for fine item movement adjustment
An electronic apparatus performs control such that an item to be displayed in a display unit is displayed so as to move according to a touch operation, and performs control to not move the position of the item displayed in the display unit even if a touch operation has been started, and, in response to a movement of a touch position having been detected, move the item from the position at which the item was displayed in accordance with a movement amount of the touch position, and after the touch position has been moved, when a position of the touch panel that is in a first direction from a set reference position of the touch panel is tapped, move the item in the first direction by an amount corresponding to a predetermined amount, every time a tap is performed.
1. An electronic apparatus comprising:
a touch detection unit configured to detect touch operations including a touch-down operation, a touch-move operation and a touch-up operation performed on a touch panel; and
a display control unit configured to perform control to display an item on a screen of a display unit while moving the item from a reference position according to an amount of movement from the touch-down position based on the touch-down operation detected on the touch panel to the touch-move position based on the touch-move operation detected on the touch panel,
wherein the reference position is updated with the touch-up position after the touch-move operation is detected and the touch-up operation is detected,
wherein the item is moved from the reference position and displayed on the screen of the display unit even when no movement is made from the touch-down position to the touch-up position in a case where the touch-down operation and the touch-up operation are newly detected on the touch panel and the touch-up position based on the detected touch-up operation is in an end portion of the touch panel, and
wherein the touch panel is separated from the display unit.
2. The apparatus according to claim 1 , wherein
the item is moved upward, downward, rightward or leftward from the reference position and displayed on the screen of the display unit when the touch-up position based on the detected touch-up operation is in an upper end, a lower end, a right end or a left end of the touch panel, even when no movement is made from the touch-down position to the touch-up position.
3. The apparatus according to claim 1 , wherein the reference position is canceled, when an operation unit other than the touch panel has been operated.
4. The apparatus according to claim 1 , wherein the reference position is canceled, when an operation for performing a shooting instruction is performed.
5. The apparatus according to claim 1 , wherein the reference position is canceled when the screen on which the item is displayed is switched to another screen.
6. The apparatus according to claim 1 , wherein the electronic apparatus is a digital camera and the display unit is in a view finder.
7. A method of controlling an electronic apparatus comprising:
detecting touch operations including a touch-down operation, a touch-move operation and a touch-up operation performed on a touch panel;
performing control to display an item on a screen of display unit while moving the item from a reference position according to an amount of movement from the touch-down position based on the touch-down operation detected on the touch panel to the touch-move position based on the touch-move operation detected on the touch panel;
updating the reference position with the touch-up position after the touch-move operation is detected and the touch-up operation is detected,
moving the item from the reference position and displaying the item on the screen of the display unit even when no movement is made from the touch-down position to the touch-up position in a case where the touch-down operation and the touch-up operation are newly detected on the touch panel and the touch-up position based on the detected touch-up operation is an end portion of the touch panel,
wherein the touch panel is separated from the display unit.
8. A non-transitory computer-readable storage medium storing a program for causing a computer to execute a method of controlling an electronic apparatus comprising:
detecting touch operations including a touch-down operation, a touch-move operation and a touch-up operation performed on a touch panel;
displaying an item on a display unit while moving the item from a reference position according to an amount of movement from the touch-down position based on the touch-down operation detected on the touch panel to the touch-move position based on the touch-move operation detected on the touch panel;
updating the reference position with the touch-up position after the touch-move operation is detected and the touch-up operation is detected,
moving the item from the reference position and displaying the item on the screen of the display unit even when no movement is made from the touch-down position to the touch-up position in a case where the touch-down operation and the touch-up operation are newly detected on the touch panel and the touch-up position based on the detected touch-up operation is an end portion of the touch panel,
wherein the touch panel is separated from the display unit.