summaryrefslogtreecommitdiff
path: root/src/gestures-pinch.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-08-08 11:07:20 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-08-08 12:05:16 +0200
commit3c63b1e6cc9eb7379e7687a5faec778c5dbfdc98 (patch)
treefad5937d1c16d5d97f704867969fe10880280025 /src/gestures-pinch.c
parent301cb7f95a4ca67b42410e65c71ddeefc379cb63 (diff)
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 <rydberg@euromail.se>
Diffstat (limited to 'src/gestures-pinch.c')
-rw-r--r--src/gestures-pinch.c2
1 files changed, 1 insertions, 1 deletions
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,
61 } 61 }
62 if (!(move->active & fm_mask)) 62 if (!(move->active & fm_mask))
63 return 0; 63 return 0;
64 prop[0] = move->fm[FM_R].delta; 64 prop[0] = move->fm[FM_R].action_delta;
65 gru_event(ge, state->gid, move, prop, 1); 65 gru_event(ge, state->gid, move, prop, 1);
66 return 1; 66 return 1;
67} 67}