diff --git a/Cargo.lock b/Cargo.lock index 1a3a6c1f..df023aec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/wayvr/Cargo.toml b/wayvr/Cargo.toml index 807528c9..2b544422 100644 --- a/wayvr/Cargo.toml +++ b/wayvr/Cargo.toml @@ -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] diff --git a/wayvr/src/overlays/keyboard/swipe_type.rs b/wayvr/src/overlays/keyboard/swipe_type.rs index 61352783..771adf5f 100644 --- a/wayvr/src/overlays/keyboard/swipe_type.rs +++ b/wayvr/src/overlays/keyboard/swipe_type.rs @@ -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)) }