Skip to content

Commit

Permalink
chore(web): and the corresponding patch-up for gesture unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed May 16, 2024
1 parent ea72100 commit 62fa316
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const MainLongpressSourceModel: ContactModel = {
if(path.isComplete) {
return 'reject';
}

return undefined;
}
}
};
Expand Down Expand Up @@ -78,6 +80,8 @@ export const ModipressEndModel: ContactModel = {
if(path.isComplete) {
return 'resolve';
}

return undefined;
}
}
}
Expand All @@ -91,6 +95,8 @@ export const SimpleTapModel: ContactModel = {
if(path.isComplete && !path.wasCancelled) {
return 'resolve';
}

return undefined;
}
}
}
Expand All @@ -103,6 +109,8 @@ export const SubkeySelectModel: ContactModel = {
if(path.isComplete && !path.wasCancelled) {
return 'resolve';
}

return undefined;
}
}
}
Expand Down Expand Up @@ -145,6 +153,8 @@ export const FlickEndContactModel: ContactModel = {
// - or, take a regression & look at the coefficient of determination.
return 'resolve';
}

return undefined;
}
},
pathResolutionAction: 'resolve',
Expand Down
6 changes: 0 additions & 6 deletions common/web/gesture-recognizer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
"outDir": "./build/obj/",
"rootDir": "./src/engine",
"tsBuildInfoFile": "./build/obj/tsconfig.tsbuildinfo",

// TODO: These override ../tsconfig.base.json settings, and so should be removed if possible,
// but existing code in web/ breaks some of these settings
//
// At present, the code actually compiles without them... but the TS tests are a different matter.
"noImplicitReturns": false
},
"include": ["./src/engine/**/*.ts"],
"exclude": ["./src/test/**/*.ts", "./src/tools/**/*.ts"],
Expand Down

0 comments on commit 62fa316

Please sign in to comment.