From 3d0f88fcf9a262680c19bd5c44e407a02c409dcf Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Thu, 18 Feb 2021 21:41:46 +0200 Subject: 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). --- src/ui/widget.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/widget.c') diff --git a/src/ui/widget.c b/src/ui/widget.c index b60c67e3..5afb004f 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c @@ -731,6 +731,9 @@ size_t childIndex_Widget(const iWidget *d, const iAnyObject *child) { } iAny *hitChild_Widget(const iWidget *d, iInt2 coord) { + if (d->flags & unhittable_WidgetFlag) { + return NULL; + } iConstForEach(ObjectList, i, d->children) { iAny *found = hitChild_Widget(constAs_Widget(i.object), coord); if (found) return found; -- cgit v1.2.3