nightkr / flickboard

Flicking keyboard for Android
GNU Affero General Public License v3.0
124 stars 25 forks source link

Haptic feedback triggered at key up and not at key down #207

Closed leocacom closed 3 months ago

leocacom commented 3 months ago

Context

Thank you for your hard work 🤟

Steps to reproduce

Just casually typing on the keyboard, this occurs with the slides too.

Expected behavior

The vibration triggered by tapping or sliding on a key should be triggered when the finger touch the key (key down). This behavior is observed in the majority of digital keyboards available, and thus that a new user should find first.

Actual behavior

When tapping the keys, the vibration haptic feedback is triggered when the finger leaves the key (key up). That creates a small but disturbing lag between the physical input and digital output.

Android version

Android 12

Device

Samsung Galaxy s10e

Other details

This delayed feedback slows down typing speed and makes typing without looking at the keyboard less intuitive. Could be an accessibility issue too.

Acknowledgements

nightkr commented 3 months ago

This is intentional-ish, the feedback is "supposed to" be for "yes, this was a valid input". Invalid swipes that do not have any associated actions will not trigger the haptic feedback. We don't have the information required to judge that at keydown.

Traditional keyboards can get away with keydown feedback, as they do know as soon as you tap whether you tapped on a key or not.

leocacom commented 3 months ago

Oh, that makes sense! It feels strange though... Was it like that in our venerable ancestor MessagEase? It could explain why it feels off to me!
Would you consider adding an option if so?