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/Pointers.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/Pointers.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Pointers.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/srcs/juloo.keyboard2/Pointers.java b/srcs/juloo.keyboard2/Pointers.java index 90cfc28..62fdbb8 100644 --- a/srcs/juloo.keyboard2/Pointers.java +++ b/srcs/juloo.keyboard2/Pointers.java @@ -473,7 +473,6 @@ public final class Pointers implements Handler.Callback stopLongPress(ptr); ptr.flags |= FLAG_P_SLIDING; ptr.sliding = new Sliding(x, y, dirx, diry, kv.getSlider()); - _handler.onPointerDown(kv, true); } /** Return the [FLAG_P_*] flags that correspond to pressing [kv]. */ @@ -622,7 +621,7 @@ public final class Pointers implements Handler.Callback float travelled = Math.abs(x - last_x) + Math.abs(y - last_y); if (last_move_ms == -1) { - if (travelled < _config.swipe_dist_px) + if (travelled < (_config.swipe_dist_px + _config.slide_step_px)) return; last_move_ms = System.currentTimeMillis(); } |
