Patent ID: 8638293

Claim:
A method for responding operations, the method comprising: intercepting a press-down event of a pointer equipment to obtain a press-down position and time of the pointer equipment; intercepting a moving event of the pointer equipment to obtain a current position where the pointer equipment moves and a time when the pointer equipment moves to the current position; calculating to obtain residence time, movement speed and movement direction of the pointer equipment according to the press-down position and time as well as the current position where the pointer equipment moves and the time when the pointer equipment moves to the current position; judging whether current gesture is dragging gesture or scrolling gesture according to the residence time, the movement speed and the movement direction, executing dragging operation if the current gesture is dragging gesture, and executing scrolling operation if the current gesture is scrolling gesture; wherein the judging whether the current gesture is dragging gesture or scrolling gesture according to the residence time, the movement speed and the movement direction comprises: calculating a probability of dragging gesture and a probability of scrolling gesture, respectively, according to the residence time, the movement speed and the movement direction; comparing the probability of dragging gesture and the probability of scrolling gesture with a preset threshold value; if the probability of dragging gesture is higher than the threshold value, and the threshold value is higher than the probability of scrolling gesture, then judging that the current gesture is dragging gesture; if the probability of scrolling gesture is higher than the threshold value, and the threshold value is higher than the probability of dragging gesture, then judging that the current gesture is scrolling gesture.