aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.ts
diff options
context:
space:
mode:
authorStanley Yip <stanley_yip@brown.edu>2019-10-08 18:14:09 -0400
committerStanley Yip <stanley_yip@brown.edu>2019-10-08 18:14:09 -0400
commitb29832a0b75e91f7d53e3820b12d517e6bf3ee94 (patch)
tree6ec887f8207ec00bd8afd5b0a168b72b6e3ca68b /src/client/util/InteractionUtils.ts
parent5ed2968c5d3e62f06b6355c33d3cb17e9828db26 (diff)
touchable added baseline
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 f8088825a..63cba4982 100644
--- a/src/client/util/InteractionUtils.ts
+++ b/src/client/util/InteractionUtils.ts
@@ -2,7 +2,7 @@ export namespace InteractionUtils {
export const MOUSE = "mouse";
export const TOUCH = "touch";
- export function IsType(e: PointerEvent, type: PointerTypes): boolean {
+ export function IsType(e: PointerEvent | React.PointerEvent, type: string): boolean {
return e.pointerType === type;
}