marsqing / libinput-three-finger-drag

Three-finger-drag support for libinput
MIT License
87 stars 11 forks source link

The sensitivity while dragging feels higher than usual one. #2

Open lilvadim opened 3 years ago

lilvadim commented 3 years ago

elementaryOS 6 Early Access with non-stock 5.11 kernel.

trongthanh commented 2 years ago

While waiting for the author to assist on this issue, I did a workaround by changing lines 44-45 in the main.rs file and compile the binary from source:

-                    let x: f32 = parts[6].parse().unwrap();
-                    let y: f32 = parts[7].parse().unwrap();
+                    let x: f32 = parts[4].parse().unwrap();
+                    let y: f32 = parts[5].parse().unwrap();

AFAIK, parts[4] and parts[5] are accelerated x & y touchpad movement translated by libinput. I think this is what we want instead of the raw unaccelerated parts[6] and parts[7]