summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r--src/ui/touch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/touch.c b/src/ui/touch.c
index c7c5a410..236601e8 100644
--- a/src/ui/touch.c
+++ b/src/ui/touch.c
@@ -274,8 +274,9 @@ static void update_TouchState_(void *ptr) {
274// setHover_Widget(NULL); 274// setHover_Widget(NULL);
275 postCommandf_App("edgeswipe.ended abort:1 side:%d id:%llu", touch->edge, touch->id); 275 postCommandf_App("edgeswipe.ended abort:1 side:%d id:%llu", touch->edge, touch->id);
276 touch->edge = none_TouchEdge; 276 touch->edge = none_TouchEdge;
277 remove_ArrayIterator(&i);
277 } 278 }
278 else continue; 279 continue;
279 } 280 }
280 /* Holding a touch will reset previous momentum for this widget. */ 281 /* Holding a touch will reset previous momentum for this widget. */
281 if (isStationary_Touch_(touch)) { 282 if (isStationary_Touch_(touch)) {
@@ -362,6 +363,7 @@ static void update_TouchState_(void *ptr) {
362 } 363 }
363} 364}
364 365
366#if 0
365static iWidget *findSlidePanel_Widget_(iWidget *d) { 367static iWidget *findSlidePanel_Widget_(iWidget *d) {
366 for (iWidget *w = d; w; w = parent_Widget(w)) { 368 for (iWidget *w = d; w; w = parent_Widget(w)) {
367 if (isVisible_Widget(w) && flags_Widget(w) & edgeDraggable_WidgetFlag) { 369 if (isVisible_Widget(w) && flags_Widget(w) & edgeDraggable_WidgetFlag) {
@@ -370,6 +372,7 @@ static iWidget *findSlidePanel_Widget_(iWidget *d) {
370 } 372 }
371 return NULL; 373 return NULL;
372} 374}
375#endif
373 376
374static void checkNewPinch_TouchState_(iTouchState *d, iTouch *newTouch) { 377static void checkNewPinch_TouchState_(iTouchState *d, iTouch *newTouch) {
375 iWidget *affinity = newTouch->affinity; 378 iWidget *affinity = newTouch->affinity;