elm_gesture_layer: Use flag returned by gesture callbacks
authorPrasoon Singh <prasoonsingh16@gmail.com>
Thu, 21 Mar 2019 09:07:43 +0000 (10:07 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
Summary:
Instead of flag returned by gesture callbacks, always EVAS_EVENT_FLAG_NONE
flag was being used.

Test Plan:
As event flag was not being appropriately updated, in some cases expected
behaviour was not seen.

Reviewers: shilpasingh, cedric, Hermet, segfaultxavi

Reviewed By: shilpasingh, segfaultxavi

Subscribers: segfaultxavi, #reviewers, rajeev.jnnce, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8421

src/lib/elementary/elm_gesture_layer.c

index ba5ea9c..667a271 100644 (file)
@@ -619,7 +619,7 @@ _state_report(Gesture_Info *gesture,
            flags |= cb_info->cb(cb_info->user_data, info);
      }
 
-   return EVAS_EVENT_FLAG_NONE;
+   return flags;
 }
 
 /**