From d2ba7e2e36047ce6ef7f2c2ead45dcf5a04b2b19 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Fri, 27 Oct 2023 13:15:44 +0700 Subject: [PATCH] fix(web): unneeded source-completion check The removed block could cause race-condition-like errors due to async input handling --- .../src/engine/headless/gestures/matchers/gestureMatcher.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/web/gesture-recognizer/src/engine/headless/gestures/matchers/gestureMatcher.ts b/common/web/gesture-recognizer/src/engine/headless/gestures/matchers/gestureMatcher.ts index 000f0818fe..9446f81fdc 100644 --- a/common/web/gesture-recognizer/src/engine/headless/gestures/matchers/gestureMatcher.ts +++ b/common/web/gesture-recognizer/src/engine/headless/gestures/matchers/gestureMatcher.ts @@ -127,10 +127,6 @@ export class GestureMatcher implements PredecessorMatch< baseContact = srcContact.baseSource; } - if(baseContact.isPathComplete) { - throw new Error("GestureMatcher may not be built against already-completed contact points"); - } - const contactSpec = model.contacts[touchpointIndex]; /* c8 ignore next 3 */ if(!contactSpec) {