From 3c63b1e6cc9eb7379e7687a5faec778c5dbfdc98 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sun, 8 Aug 2010 11:07:20 +0200 Subject: Keep both raw and action delta in move model Accumulated values can be obtained either by using the raw_delta, which is the actual (filtered) change between frames, or by using the action delta, which sums up to the same position, but in a non- linear fashion. Use the raw delta for pointer gestures. Signed-off-by: Henrik Rydberg --- src/gestures-pinch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gestures-pinch.c') diff --git a/src/gestures-pinch.c b/src/gestures-pinch.c index 358718d..62f6601 100644 --- a/src/gestures-pinch.c +++ b/src/gestures-pinch.c @@ -61,7 +61,7 @@ int gru_pinch(struct grail *ge, } if (!(move->active & fm_mask)) return 0; - prop[0] = move->fm[FM_R].delta; + prop[0] = move->fm[FM_R].action_delta; gru_event(ge, state->gid, move, prop, 1); return 1; } -- cgit v1.2.3