摘要 |
PURPOSE:To accurately discriminate a drag operation from a click operation by discriminating whether the position shift of a mouse and the time difference are kept under the prescribed value or not between the first push and the first release of a button. CONSTITUTION:When a button push event is received at first, the start point coordinates P1 and a time point T1 are acquired. Then the coordinates P2 and a time point T2 are acquired when a button push release event is received. A click operation is decided when the distance between P1 and P2 is less than a prescribed threshold value together with the time difference (T1-T2) kept under the prescribed threshold value respectively. Otherwise a drag operation is decided. At the time of drag operation, an end point deciding process is carried out since the P2 is equal to the end point coordinates. While the end point is decided after input of the end point coordinate at the time of click operation.
|