|
@@ -56,7 +56,7 @@ The current velocity of the pointer, given in space units per second. You can ge
|
56
|
56
|
|
57
|
57
|
`pointer.duration: number, read-only`
|
58
|
58
|
|
59
|
|
-The elapsed time, in seconds, since the tracking of this pointer began.
|
|
59
|
+The elapsed time, in seconds, since the tracking of this pointer began. You can check if this pointer represents a tap by comparing its duration to a threshold at the `"ended"` [phase](#phase). Example: `isTap = pointer.phase == "ended" && pointer.duration < 0.25`.
|
60
|
60
|
|
61
|
61
|
### movementLength
|
62
|
62
|
|
|
@@ -68,16 +68,16 @@ How much this pointer has moved, in space units, since its tracking began. You c
|
68
|
68
|
|
69
|
69
|
`pointer.movementDuration: number, read-only`
|
70
|
70
|
|
71
|
|
-The total time, in seconds, in which this pointer has moved. You can get the average speed of motion, excluding the times in which this pointer has not moved, by calculating the ratio `movementLength / movementDuration`.
|
|
71
|
+The total time, in seconds, in which this pointer has moved. You can get the average speed of motion, excluding the times in which this pointer remained stationary, by calculating the ratio `movementLength / movementDuration`.
|
72
|
72
|
|
73
|
73
|
### isPrimary
|
74
|
74
|
|
75
|
75
|
`pointer.isPrimary: boolean, read-only`
|
76
|
76
|
|
77
|
|
-Whether or not this is the primary pointer among all pointers of this [type](#type). A typical primary pointer is that of a finger that touches the screen when no other fingers are touching it.
|
|
77
|
+Whether or not this is the primary pointer among all pointers of this [kind](#kind). A typical primary pointer is that of a finger that touches the screen when no other fingers are touching it.
|
78
|
78
|
|
79
|
79
|
### kind
|
80
|
80
|
|
81
|
81
|
`pointer.kind: string, read-only`
|
82
|
82
|
|
83
|
|
-The type of device that originated this pointer. Typically `"touch"`, `"mouse"` or `"pen"`.
|
|
83
|
+The kind of device that originated this pointer. Typically `"touch"`, `"mouse"` or `"pen"`.
|