Method for operating user interface and electronic device thereof
First Claim
1. A method for operating a user interface, the method being adapted to an electronic device having a touch screen, the touch screen displaying the user interface comprising at least one operable object, the method comprising:
- detecting a first touch by a sensor located on one side of the touch screen to obtain a first touch signal corresponding to the first touch;
if the first touch signal continuously exists, detecting a second touch through the touch screen to obtain a second touch signal corresponding to the second touch, wherein the first touch signal corresponds to a first touch position, and the second touch signal corresponds to a second touch position;
obtaining a base direction according to the first touch position and the second touch position;
obtaining a target region by extending by a distance toward the base direction from the second touch position on the user interface;
determining whether the at least one operable object is located within the target region;
moving the at least one operable object in the target region to a specific region on the user interface at a specific speed if it is determined that the at least one operable object is located within the target region; and
maintaining the at least one operable object at an original location on the user interface if it is determined that the at least one operable object is not located within the target region,wherein a distance between the at least one operable object and the second touch position before the at least one operable object is moved is greater than a distance between the at least one operable object and the second touch position after the at least one operable object is moved.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for operating a user interface and an electronic device using the method are provided. The electronic device has a touch screen that displays the user interface, and the user interface includes at least one operable object. The method includes: detecting a first touch through a sensor located on a side of the touch screen to obtain a first touch signal corresponding to the first touch; if the first touch signal continuously exists, detecting a second touch through the touch screen to obtain a second touch signal corresponding to the second touch; determining a target region on the user interface according to the first touch signal and the second touch signal; moving the at least one operable object in the target region to a specific region on the user interface at a specific speed.
-
Citations
8 Claims
-
1. A method for operating a user interface, the method being adapted to an electronic device having a touch screen, the touch screen displaying the user interface comprising at least one operable object, the method comprising:
-
detecting a first touch by a sensor located on one side of the touch screen to obtain a first touch signal corresponding to the first touch; if the first touch signal continuously exists, detecting a second touch through the touch screen to obtain a second touch signal corresponding to the second touch, wherein the first touch signal corresponds to a first touch position, and the second touch signal corresponds to a second touch position; obtaining a base direction according to the first touch position and the second touch position; obtaining a target region by extending by a distance toward the base direction from the second touch position on the user interface; determining whether the at least one operable object is located within the target region; moving the at least one operable object in the target region to a specific region on the user interface at a specific speed if it is determined that the at least one operable object is located within the target region; and maintaining the at least one operable object at an original location on the user interface if it is determined that the at least one operable object is not located within the target region, wherein a distance between the at least one operable object and the second touch position before the at least one operable object is moved is greater than a distance between the at least one operable object and the second touch position after the at least one operable object is moved. - View Dependent Claims (2, 3, 4)
-
-
5. An electronic device comprising:
-
a touch screen configured to display a user interface, the user interface comprising at least one operable object; a sensor located on one side of the touch screen; and a processor coupled to the touch screen and the sensor, wherein the sensor is configured to detect a first touch, and the processor is configured to obtain a first touch signal corresponding to the first touch according to the first touch detected by the sensor; if the first touch signal continuously exists, the touch screen is configured to detect a second touch, and the processor is further configured to obtain a second touch signal corresponding to the second touch according to the second touch detected by the touch screen, wherein the first touch signal corresponds to a first touch position, and the second touch signal corresponds to a second touch position; the processor is further configured to obtain a base direction according to the first touch position and the second touch position and obtain a target region by extending by a distance toward the base direction from the second touch position on the user interface; the processor is further configured to determine whether the at least one operable object is located within the target region and move the at least one operable object in the target region to a specific region on the user interface at a specific speed only if it is determined that the at least one operable object is located within the target region, wherein a distance between the at least one operable object and the second touch position before the at least one operable object is moved is greater than a distance between the at least one operable object and the second touch position after the at least one operable object is moved. - View Dependent Claims (6, 7, 8)
-
Specification