use latest swipe_type library version

This commit is contained in:
oneshinyboi 2026-03-16 04:35:48 +00:00
parent 5cf1a0c34c
commit 47a3c65ca0
No known key found for this signature in database
GPG Key ID: A494E206A095F0C0
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View File

@ -6101,9 +6101,9 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
[[package]]
name = "super-swipe-type"
version = "0.1.2"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32fd40ad969f38b55f6d1541d7c1a16226821b51a38362de7aa800f976632336"
checksum = "22126517bdf94f41b3d0af625fdf69b5ff131b7dd19a59866d3c00a56072af88"
dependencies = [
"anyhow",
"cached-path",

View File

@ -90,7 +90,7 @@ xcb = { version = "1.6.0", optional = true, features = [
xkbcommon = { version = "0.8.0" } # 0.9.0 breaks keymap import on some distros
codes-iso-639 = "0.1.5"
arboard = { version="3.6.1", features = ["wayland-data-control", "wl-clipboard-rs"] }
super-swipe-type = "0.1.2"
super-swipe-type = "0.2.2"
[build-dependencies]

View File

@ -212,7 +212,7 @@ impl SwipeTypingManager {
};
let point = within_key_pos_from_center * key_dimensions + key_pos;
let duration = Instant::now().duration_since(start_time);
let duration = Instant::now().duration_since(start_time).mul_f32(0.8); // multiply by .8 because library is trained on mobile swipes which happen on a smaller keyboard and are faster
self.current_swipe
.push(SwipePoint::new(point.x.into(), point.y.into(), duration))
}