diff options
| author | Stanley Yip <stanley_yip@brown.edu> | 2019-10-08 18:14:09 -0400 |
|---|---|---|
| committer | Stanley Yip <stanley_yip@brown.edu> | 2019-10-08 18:14:09 -0400 |
| commit | b29832a0b75e91f7d53e3820b12d517e6bf3ee94 (patch) | |
| tree | 6ec887f8207ec00bd8afd5b0a168b72b6e3ca68b /src/client/util | |
| parent | 5ed2968c5d3e62f06b6355c33d3cb17e9828db26 (diff) | |
touchable added baseline
Diffstat (limited to 'src/client/util')
| -rw-r--r-- | src/client/util/InteractionUtils.ts | 2 |
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; } |
