aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/InteractionUtils.ts
diff options
context:
space:
mode:
authorStanley Yip <stanley_yip@brown.edu>2020-01-17 15:36:22 -0500
committerStanley Yip <stanley_yip@brown.edu>2020-01-17 15:36:22 -0500
commit4b0a056f1afaf20dea4be64c7b238748d99ad12e (patch)
tree53160e3ca195b9f2b34070bf301737086ae95f8c /src/client/util/InteractionUtils.ts
parent4bf88786cc8a7e617bca4eb57f7639d69be06dcd (diff)
palette now doesn't interfere with touch
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 da42bdc93..3e6d27242 100644
--- a/src/client/util/InteractionUtils.ts
+++ b/src/client/util/InteractionUtils.ts
@@ -49,7 +49,7 @@ export namespace InteractionUtils {
export function GetMyTargetTouches(mte: InteractionUtils.MultiTouchEvent<React.TouchEvent | TouchEvent>, prevPoints: Map<number, React.Touch>, ignorePen: boolean): React.Touch[] {
const myTouches = new Array<React.Touch>();
for (const pt of mte.touches) {
- if (ignorePen || (pt.radiusX > 1 && pt.radiusY > 1)) {
+ if (!ignorePen || (pt.radiusX > 1 && pt.radiusY > 1)) {
for (const tPt of mte.targetTouches) {
if (tPt?.screenX === pt?.screenX && tPt?.screenY === pt?.screenY) {
if (pt && prevPoints.has(pt.identifier)) {