Skip to content
Snippets Groups Projects
Commit 88ecbf11 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Update hitbox boosting

parent a554b1ca
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,9 @@ public class KeyDetector {
// versus min distance to center for non boosted ones.
final float distance = key.distanceToEdge(touchX, touchY);
if(distance > Math.min(key.getWidth(), key.getHeight()) * 0.5f)
continue;
if(distance < minDistance) {
minDistance = distance;
primaryKey = key;
......
......@@ -91,8 +91,8 @@ fun PredictiveTextScreen(navController: NavHostController = rememberNavControlle
)
SettingToggleSharedPrefs(
title = "Key hitbox boosting",
subtitle = "Uses dictionary to determine relevant next keys, and boosts their hit area",
title = "Smart key-hit detection",
subtitle = "Uses dictionary to determine relevant next keys, and boosts their hit area. Boosting is avoided after a backspace",
key = Settings.PREF_USE_DICT_KEY_BOOSTING,
default = true
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment