aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-12-07 14:48:43 -0500
committeryipstanley <stanley_yip@brown.edu>2019-12-07 14:48:43 -0500
commitb3b81c8400ce2a92df1ae8c0db9b422cf4a2cf4c (patch)
tree99cc7d7636eb1cd2937b0d9e4211a3e1bc9e12cd /src/client/util/InteractionUtils.ts
parentfb9f08295c10c35c11b647d00a3c830867dc3f7d (diff)
i think this is better now
Diffstat (limited to 'src/client/util/InteractionUtils.ts')
-rw-r--r--src/client/util/InteractionUtils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/InteractionUtils.ts b/src/client/util/InteractionUtils.ts
index c24c70bca..7390890c6 100644
--- a/src/client/util/InteractionUtils.ts
+++ b/src/client/util/InteractionUtils.ts
@@ -53,7 +53,7 @@ export namespace InteractionUtils {
* @param oldPoint2 - previous point 2
*/
export function Pinching(pt1: React.Touch, pt2: React.Touch, oldPoint1: React.Touch, oldPoint2: React.Touch): number {
- let threshold = 4;
+ let threshold = 3;
let oldDist = TwoPointEuclidist(oldPoint1, oldPoint2);
let newDist = TwoPointEuclidist(pt1, pt2);