摘要 |
A method for responding operations includes: intercepting a press-down event of a pointer equipment to obtain 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 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 the current gesture is a dragging gesture or a scrolling gesture according to the residence time, movement speed and movement direction, executing a dragging operation if the current gesture is the dragging gesture, and executing a scrolling operation if the current gesture is the scrolling gesture. |