From 4c35a93bbc162a7f4c8b8eaacb1bedac493e5316 Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 24 Jun 2024 08:55:09 +0700 Subject: [PATCH 1/2] fix(web): use fat-finger data with simple keypresses --- web/src/engine/osk/src/visualKeyboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/engine/osk/src/visualKeyboard.ts b/web/src/engine/osk/src/visualKeyboard.ts index cf356d00bc3..cc8c842ea98 100644 --- a/web/src/engine/osk/src/visualKeyboard.ts +++ b/web/src/engine/osk/src/visualKeyboard.ts @@ -628,7 +628,7 @@ export default class VisualKeyboard extends EventEmitter implements Ke try { shouldLockLayer && this.lockLayer(true); // Once the best coord to use for fat-finger calculations has been determined: - keyResult = this.modelKeyClick(gestureStage.item, coord); + keyResult = this.modelKeyClick(gestureStage.item, coord, correctionKeyDistribution); } finally { shouldLockLayer && this.lockLayer(false); } From f3cedac5e04e8e7dc82b6155e31977bb5421d1de Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 24 Jun 2024 09:26:22 +0700 Subject: [PATCH 2/2] change(web): better div-by-zero fudge factor for fat-fingering --- common/web/input-processor/src/corrections.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/web/input-processor/src/corrections.ts b/common/web/input-processor/src/corrections.ts index fa9b77036fe..39c5ae2ef37 100644 --- a/common/web/input-processor/src/corrections.ts +++ b/common/web/input-processor/src/corrections.ts @@ -80,7 +80,12 @@ export function distributionFromDistanceMaps(squaredDistMaps: Map