projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc2b95
)
filter: make the MAX_VELOCITY_DIFF a double
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 24 Apr 2018 04:28:01 +0000
(14:28 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 26 Apr 2018 00:34:16 +0000
(10:34 +1000)
The value is 0.001 which happens to be 0 when you cast it to int.
Introduced in
e3554f38f8016ad89ffb7d9569eaa48769d48255
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/filter.c
patch
|
blob
|
history
diff --git
a/src/filter.c
b/src/filter.c
index dd66da70fe247e5c4b4226aa8a0aa90bdde58285..7b7e005a814271da2d320ecfcdd02a3de643635d 100644
(file)
--- a/
src/filter.c
+++ b/
src/filter.c
@@
-206,7
+206,7
@@
trackers_velocity_after_timeout(struct pointer_tracker *tracker,
double
trackers_velocity(struct pointer_trackers *trackers, uint64_t time)
{
- const
int
MAX_VELOCITY_DIFF = v_ms2us(1); /* units/us */
+ const
double
MAX_VELOCITY_DIFF = v_ms2us(1); /* units/us */
struct pointer_tracker *tracker;
double velocity;
double result = 0.0;