diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-18 21:41:46 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-18 21:41:46 +0200 |
commit | 3d0f88fcf9a262680c19bd5c44e407a02c409dcf (patch) | |
tree | cfd39dbe14683e5c9fa4b24805a49c3301a10f3f /src/ui/indicatorwidget.c | |
parent | 0962147cc8fa92e5a79458bf1270ded51c9a4433 (diff) |
iOS: Working on touch event handling
Handle finger down, motion, and up events to implement basic taps, long presses, and inertia scrolling.
Much finetuning still to be done, and certain widgets like input fields and scrollbars need a direct drag mode (they were working fine via the "mouse" events already).
Diffstat (limited to 'src/ui/indicatorwidget.c')
-rw-r--r-- | src/ui/indicatorwidget.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/indicatorwidget.c b/src/ui/indicatorwidget.c index 96556912..4a829ae3 100644 --- a/src/ui/indicatorwidget.c +++ b/src/ui/indicatorwidget.c | |||
@@ -72,6 +72,7 @@ void init_IndicatorWidget(iIndicatorWidget *d) { | |||
72 | iWidget *w = &d->widget; | 72 | iWidget *w = &d->widget; |
73 | init_Widget(w); | 73 | init_Widget(w); |
74 | init_Anim(&d->pos, 0); | 74 | init_Anim(&d->pos, 0); |
75 | setFlags_Widget(w, unhittable_WidgetFlag, iTrue); | ||
75 | } | 76 | } |
76 | 77 | ||
77 | static void startTimer_IndicatorWidget_(iIndicatorWidget *d) { | 78 | static void startTimer_IndicatorWidget_(iIndicatorWidget *d) { |