diff options
| author | Jules Aguillon | 2025-08-17 19:24:08 +0200 |
|---|---|---|
| committer | GitHub | 2025-08-17 19:24:08 +0200 |
| commit | cedf3aeb1c63ac91f550dd48f984cf4f6cf68ed7 (patch) | |
| tree | dda0fbdafe68b953e1fe032fddca75d8f728e879 /srcs/juloo.keyboard2/Config.java | |
| parent | c1d473b4a0b77765e7787a7dc052a748873be826 (diff) | |
| download | unexpected-keyboard-cedf3aeb1c63ac91f550dd48f984cf4f6cf68ed7.tar.gz unexpected-keyboard-cedf3aeb1c63ac91f550dd48f984cf4f6cf68ed7.zip | |
Slider sensitivity option and improve slider ergonimics (#1070)
* Add option 'Space bar slider sensitivity'
* Fix slider moving the cursor twice at the beginning
The slider was generating two events when first activated.
Since 2bed42857.
* Make slider less sensitive for the first step
This moves the second slider step approximately 40% further and takes the
new sensitivity option into account.
Allows moving the cursor by one spot more easily.
Diffstat (limited to 'srcs/juloo.keyboard2/Config.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Config.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/srcs/juloo.keyboard2/Config.java b/srcs/juloo.keyboard2/Config.java index 06a82db..6ca8113 100644 --- a/srcs/juloo.keyboard2/Config.java +++ b/srcs/juloo.keyboard2/Config.java @@ -144,7 +144,8 @@ public final class Config float swipe_scaling = Math.min(dm.widthPixels, dm.heightPixels) / 10.f * dpi_ratio; float swipe_dist_value = Float.valueOf(_prefs.getString("swipe_dist", "15")); swipe_dist_px = swipe_dist_value / 25.f * swipe_scaling; - slide_step_px = 0.4f * swipe_scaling; + float slider_sensitivity = Float.valueOf(_prefs.getString("slider_sensitivity", "30")) / 100.f; + slide_step_px = slider_sensitivity * swipe_scaling; vibrate_custom = _prefs.getBoolean("vibrate_custom", false); vibrate_duration = _prefs.getInt("vibrate_duration", 20); longPressTimeout = _prefs.getInt("longpress_timeout", 600); |
