[PATCH synaptics 1/2] Added "friction physics" so coasting can stop on its own.
Chris Bagwell
chris at cnpbagwell.com
Thu Aug 19 18:38:44 PDT 2010
On Thu, Aug 19, 2010 at 8:13 PM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> From: Patrick Curran <pjcurran at wisc.edu>
>
> When you are coasting (but not corner coasting) you might want the
> scrolling to slow down and stop on its own. This also lets you
> start coasting while using a two finger scroll.
>
> Signed-off-by: Patrick Curran <pjcurran at wisc.edu>
> Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
> Tested-by: Peter Hutterer <peter.hutterer at who-t.net>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> include/synaptics-properties.h | 2 +-
> man/synaptics.man | 11 +++++++++--
> src/properties.c | 13 +++++++------
> src/synaptics.c | 34 +++++++++++++++++++++++++++-------
> src/synapticsstr.h | 1 +
> tools/synclient.c | 1 +
> 6 files changed, 46 insertions(+), 16 deletions(-)
>
> diff --git a/include/synaptics-properties.h b/include/synaptics-properties.h
> index cf330d8..9c6a2ee 100644
> --- a/include/synaptics-properties.h
> +++ b/include/synaptics-properties.h
> @@ -130,7 +130,7 @@
> /* 32 bit, 2 values, width, z */
> #define SYNAPTICS_PROP_PALM_DIMENSIONS "Synaptics Palm Dimensions"
>
> -/* FLOAT */
> +/* FLOAT, 2 values, speed, friction */
> #define SYNAPTICS_PROP_COASTING_SPEED "Synaptics Coasting Speed"
>
> /* 32 bit, 2 values, min, max */
> diff --git a/man/synaptics.man b/man/synaptics.man
> index 590a380..b268a23 100644
> --- a/man/synaptics.man
> +++ b/man/synaptics.man
> @@ -397,10 +397,17 @@ Minimum finger pressure at which touch is considered a palm. Property:
> "Synaptics Palm Dimensions"
> .TP
> .BI "Option \*qCoastingSpeed\*q \*q" float \*q
> -Coasting threshold scrolling speed.
> +Your finger needs to produce this many scrolls per second in order to start
> +coasting. The default is 20 which should prevent you from starting coasting
> +unintentionally.
> .
> 0 disables coasting. Property: "Synaptics Coasting Speed"
> .TP
> +.BI "Option \*qCoastingFriction\*q \*q" float \*q
> +Number of scrolls per second per second to decrease the coasting speed. Default
^ typo?
My only comment.
More information about the xorg-devel
mailing list