aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.ts
diff options
context:
space:
mode:
authorStanley Yip <stanley_yip@brown.edu>2020-01-07 14:49:27 -0500
committerStanley Yip <stanley_yip@brown.edu>2020-01-07 14:49:27 -0500
commitd16636a8246dadb486476fe98da63fc0db4d36dc (patch)
tree6a1b449336311d4f75b6957387aec1233749accf /src/client/util/InteractionUtils.ts
parent4ead7eccb8ed9dd5708384315f8c5454b9725106 (diff)
resizing works, the math is just wrong looool
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 7c386abc2..2d3671041 100644
--- a/src/client/util/InteractionUtils.ts
+++ b/src/client/util/InteractionUtils.ts
@@ -8,7 +8,7 @@ export namespace InteractionUtils {
const REACT_POINTER_PEN_BUTTON = 0;
const ERASER_BUTTON = 5;
- export function GetMyTargetTouches(e: TouchEvent, prevPoints: Map<number, React.Touch>): React.Touch[] {
+ export function GetMyTargetTouches(e: TouchEvent | React.TouchEvent, prevPoints: Map<number, React.Touch>): React.Touch[] {
let myTouches = new Array<React.Touch>();
for (let i = 0; i < e.targetTouches.length; i++) {
let pt = e.targetTouches.item(i);