Patent ID: 9632690
Date: 2017-04-25
CPC Classifications: G06F

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.