summaryrefslogtreecommitdiff
path: root/CODING_STYLE
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-04-22 12:25:13 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-06-02 09:03:07 +1000
commit289e4675c81d2fe32650295ce2b6a66a1ebb9f24 (patch)
tree02c95f12b9bf6f6dc0337f4a73b949d43917061e /CODING_STYLE
parenta81051e5136aeb23ce0ed85e387ae2d9b9447faa (diff)
filter: enforce minimum velocity
In the current code, a timeout or direction change on the first tracker will result in a velocity of 0. Really slow movements will thus always be zero, and the first event after a direction is swallowed. Enforce a minimum velocity: In the case of a timeout, assume the current velocity is that of distance/timeout. In the case of a direction change, the velocity is simply that since the last tracker. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'CODING_STYLE')
0 files changed, 0 insertions, 0 deletions