diff --git a/kcms/touchpad/kcm/libinput/touchpad.qml b/kcms/touchpad/kcm/libinput/touchpad.qml --- a/kcms/touchpad/kcm/libinput/touchpad.qml +++ b/kcms/touchpad/kcm/libinput/touchpad.qml @@ -242,7 +242,7 @@ id: accelSpeed from: 1 - to: 11 + to: 41 stepSize: 1 function load() { @@ -251,16 +251,16 @@ value = 0.1 return } - // transform libinput's pointer acceleration range [-1, 1] to slider range [1, 11] - value = 6 + touchpad.pointerAcceleration / 0.2 + // transform libinput's pointer acceleration range [-1, 1] to slider range [1, 41] + value = 21 + touchpad.pointerAcceleration / 0.05 } onValueChanged: { if (touchpad != undefined && enabled && !root.loading) { - // transform slider range [1, 11] to libinput's pointer acceleration range [-1, 1] - // by *10 and /10, we ignore the floating points after 1 digit. This prevents from + // transform slider range [1, 41] to libinput's pointer acceleration range [-1, 1] + // by *10 and /10, we ignore the floating points after 2 digit. This prevents from // having a libinput value like 0.60000001 - touchpad.pointerAcceleration = Math.round(((value-6) * 0.2) * 10) / 10 + touchpad.pointerAcceleration = Math.round(((value-21) * 0.05) * 10) / 10 root.changeSignal() } }