1
0
Fork 0

decreased the horizontal swiping sensitivity of LF4 to prevent accidental keyboard switching

This commit is contained in:
sspanak 2024-10-27 20:11:00 +02:00 committed by Dimo Karaivanov
parent bcf73a90a2
commit 3eefc01576

View file

@ -18,6 +18,11 @@ public class SoftKeyLF4 extends SwipeableKey {
return tt9 != null && tt9.getSettings().getEnabledLanguageIds().size() > 1;
}
@Override
protected float getSwipeXThreshold(Context context) {
return super.getSwipeXThreshold(context) * 3;
}
@Override
protected void handleHold() {
preventRepeat();