Function: touchPair()
touchPair(
a,b):object
Defined in: src/lib/utils/navigation/index.ts:84
The midpoint of two touches and the distance between them, for two-finger pan and pinch.
Parameters
a
b
Returns
object
distance
distance:
number
mid
mid:
Point
Example
touchPair({ x: 0, y: 0 }, { x: 6, y: 8 }); // { mid: { x: 3, y: 4 }, distance: 10 }