diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-04 22:23:42 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-04 22:24:43 +0200 |
commit | 900b449a5dbe8cbf08c7ad54662b1c3067093356 (patch) | |
tree | 3204f22e2a3f9e32f75d9368a01c55b57d271f74 | |
parent | 8a66b1b85c7377dcbd90d36c04e37f2a7b089b71 (diff) |
Touch: Adjusting long press
-rw-r--r-- | src/ui/touch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/touch.c b/src/ui/touch.c index c2a01be2..e3c7b9a1 100644 --- a/src/ui/touch.c +++ b/src/ui/touch.c | |||
@@ -104,8 +104,8 @@ static iTouch *find_TouchState_(iTouchState *d, SDL_FingerID id) { | |||
104 | return NULL; | 104 | return NULL; |
105 | } | 105 | } |
106 | 106 | ||
107 | static const uint32_t longPressSpanMs_ = 425; | 107 | static const uint32_t longPressSpanMs_ = 500; |
108 | static const int tapRadiusPt_ = 5; | 108 | static const int tapRadiusPt_ = 10; |
109 | 109 | ||
110 | iLocalDef float distance_Touch_(const iTouch *d) { | 110 | iLocalDef float distance_Touch_(const iTouch *d) { |
111 | return length_F3(sub_F3(d->pos[0], d->startPos)); | 111 | return length_F3(sub_F3(d->pos[0], d->startPos)); |