summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-04 22:23:42 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-04 22:24:43 +0200
commit900b449a5dbe8cbf08c7ad54662b1c3067093356 (patch)
tree3204f22e2a3f9e32f75d9368a01c55b57d271f74 /src/ui/touch.c
parent8a66b1b85c7377dcbd90d36c04e37f2a7b089b71 (diff)
Touch: Adjusting long press
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r--src/ui/touch.c4
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
107static const uint32_t longPressSpanMs_ = 425; 107static const uint32_t longPressSpanMs_ = 500;
108static const int tapRadiusPt_ = 5; 108static const int tapRadiusPt_ = 10;
109 109
110iLocalDef float distance_Touch_(const iTouch *d) { 110iLocalDef 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));