aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/Touchable.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-04 21:30:40 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-04 21:30:40 -0400
commitece923c838cd14724f9fda9f45c21dc39f6f62ee (patch)
tree2ef257d45e334413f4b91d5bfb96c50baea4141c /src/client/views/Touchable.tsx
parentc291e8b2c8fb9034916b4eb4b286f99a8cb35a04 (diff)
parent807743bdd351b639e3328fa1ed6f128738f95b9f (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/Touchable.tsx')
-rw-r--r--src/client/views/Touchable.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/Touchable.tsx b/src/client/views/Touchable.tsx
index bc3d07130..08310786b 100644
--- a/src/client/views/Touchable.tsx
+++ b/src/client/views/Touchable.tsx
@@ -42,7 +42,7 @@ export abstract class Touchable<T = {}> extends React.Component<T> {
if (pt.clientX === tPt.clientX && pt.clientY === tPt.clientY) {
// pen is also a touch, but with a radius of 0.5 (at least with the surface pens)
// and this seems to be the only way of differentiating pen and touch on touch events
- if (pt.radiusX > 1 && pt.radiusY > 1) {
+ if ((pt as any).radiusX > 1 && (pt as any).radiusY > 1) {
this.prevPoints.set(pt.identifier, pt);
}
}