diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-19 10:50:41 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-19 10:50:41 +0200 |
commit | 63dc07ddbecfdf0be7c0bd98c53e492628dda98b (patch) | |
tree | 5757cbf586f8220a929f7341234c771ee982463a /src/ui/inputwidget.c | |
parent | 4cb785e2b175424316a5795b1e5dcf012a69b134 (diff) |
Touch: Scrollbars can be dragged via touch
Widgets can be flagged as being touch-draggable, which makes them receive finger down/motion/up events directly, and no momentum scrolling is applied.
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r-- | src/ui/inputwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c index b51bd3ef..2f0fa064 100644 --- a/src/ui/inputwidget.c +++ b/src/ui/inputwidget.c | |||
@@ -108,7 +108,7 @@ static void showCursor_InputWidget_(iInputWidget *d) { | |||
108 | void init_InputWidget(iInputWidget *d, size_t maxLen) { | 108 | void init_InputWidget(iInputWidget *d, size_t maxLen) { |
109 | iWidget *w = &d->widget; | 109 | iWidget *w = &d->widget; |
110 | init_Widget(w); | 110 | init_Widget(w); |
111 | setFlags_Widget(w, focusable_WidgetFlag | hover_WidgetFlag, iTrue); | 111 | setFlags_Widget(w, focusable_WidgetFlag | hover_WidgetFlag | touchDrag_WidgetFlag, iTrue); |
112 | init_Array(&d->text, sizeof(iChar)); | 112 | init_Array(&d->text, sizeof(iChar)); |
113 | init_Array(&d->oldText, sizeof(iChar)); | 113 | init_Array(&d->oldText, sizeof(iChar)); |
114 | init_String(&d->hint); | 114 | init_String(&d->hint); |