libinput-three-finger-drag icon indicating copy to clipboard operation
libinput-three-finger-drag copied to clipboard

The sensitivity while dragging feels higher than usual one.

Open lilvadim opened this issue 3 years ago • 1 comments

elementaryOS 6 Early Access with non-stock 5.11 kernel.

lilvadim avatar Apr 25 '21 06:04 lilvadim

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]

trongthanh avatar Aug 14 '21 17:08 trongthanh