Skip to content

Add configurable flick gesture sensitivity setting - #2201

Open
rishubil wants to merge 1 commit into
futo-org:masterfrom
rishubil:feat/flick-gesture-sensitivity
Open

Add configurable flick gesture sensitivity setting#2201
rishubil wants to merge 1 commit into
futo-org:masterfrom
rishubil:feat/flick-gesture-sensitivity

Conversation

@rishubil

@rishubil rishubil commented Aug 3, 2026

Copy link
Copy Markdown

Summary

The flick gesture threshold is currently hardcoded to one third of the key width in Key.flickDirection. On flick layouts with small keys, or for users who prefer shorter gestures, that distance is farther than comfortable, and there is no way to adjust it.

This adds a "Flick sensitivity" slider so the threshold can be tuned, while keeping the current behavior as the default.

Changes

  • Add a "Flick sensitivity" slider to the "Long-Press Keys & Spacebar" settings menu, placed next to the existing "Long Press Duration" slider.
  • Store the threshold as an integer percentage of the key width, adjustable from 1% to 100%, with -1 selecting the built-in default of one third.
  • Replace the hardcoded width / 3 threshold in Key with a configurable Key.flickThresholdRatio companion property.
  • Read the initial value and observe subsequent changes in LatinIME.

The slider follows the existing "Vibration" setting: the stored unit matches the slider range, values are quantized on write so the indicator always matches what is stored, and the -1 sentinel renders as "Default".

Notes

  • Default behavior is unchanged — the threshold stays at one third of the key width unless the user moves the slider.
  • Only affects layouts that use flick keys (the Japanese 12-key layouts, and custom flick layouts).

Add a "Flick sensitivity" slider to the "Long-Press Keys & Spacebar"
settings menu, next to the long press duration slider, that lets users
adjust how far they have to swipe before a flick action triggers. The
threshold is expressed as a percentage of the key width and is
adjustable from 1% to 100%, with -1 selecting the built-in default of
one third of the key width.

- Add flickThresholdSetting, storing the threshold as an int percentage
- Replace the hardcoded width/3 threshold in Key with a configurable
  Key.flickThresholdRatio companion property
- Load the initial value and observe changes in LatinIME

The slider mirrors the existing vibration strength setting: the stored
unit matches the slider range, values are quantised on write, and the
-1 sentinel renders as "Default".
@futo-cla-pr-labler

Copy link
Copy Markdown

Please sign our contributor license agreement at https://cla.futo.tech

@futo-cla-pr-labler

Copy link
Copy Markdown

Please sign our contributor license agreement at https://cla.futo.tech

@rishubil

rishubil commented Aug 3, 2026

Copy link
Copy Markdown
Author

I've signed the CLA

@Zvonimir-FUTO Zvonimir-FUTO added Enhancement Request for a new feature Swipe Typing Issues/FR related to swipe typing unlike regular typing Settings Menu labels Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA-signed Enhancement Request for a new feature Settings Menu Swipe Typing Issues/FR related to swipe typing unlike regular typing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants