diff options
-rw-r--r-- | src/evdev-mt-touchpad.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index e7dcd29..68d3739 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -707,8 +707,8 @@ tp_init_accel(struct tp_dispatch *tp, double diagonal) * into an elipse on the screen. */ if (res_x > 1 && res_y > 1) { - tp->accel.x_scale_coeff = 10.0 / res_x; - tp->accel.y_scale_coeff = 10.0 / res_y; + tp->accel.x_scale_coeff = (400/25.4) / res_x; + tp->accel.y_scale_coeff = (400/25.4) / res_y; } else { /* * For touchpads where the driver does not provide resolution, fall |