|
@@ -381,7 +381,7 @@ export class PointerTracker implements Tracker
|
381
|
381
|
const duration = previous ? previous.duration + deltaTime : 0;
|
382
|
382
|
|
383
|
383
|
// determine how much this pointer has moved since its tracking began
|
384
|
|
- const totalDistance = previous ? previous.totalDistance + deltaPosition.length() : 0;
|
|
384
|
+ const movementLength = previous ? previous.movementLength + deltaPosition.length() : 0;
|
385
|
385
|
|
386
|
386
|
// determine whether or not this is the primary pointer for this type
|
387
|
387
|
const isPrimary = event.isPrimary;
|
|
@@ -391,7 +391,7 @@ export class PointerTracker implements Tracker
|
391
|
391
|
|
392
|
392
|
// we create new trackable instances on each frame;
|
393
|
393
|
// these will be exported and consumed by the user
|
394
|
|
- this._newPointers.set(id, { id, phase, position, deltaPosition, initialPosition, velocity, duration, totalDistance, isPrimary, kind });
|
|
394
|
+ this._newPointers.set(id, { id, phase, position, deltaPosition, initialPosition, velocity, duration, movementLength, isPrimary, kind });
|
395
|
395
|
|
396
|
396
|
}
|
397
|
397
|
|