bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=0694a54dbda7a0938b1ca58ab9c7a29b060f9f82
commit 0694a54dbda7a0938b1ca58ab9c7a29b060f9f82 Author: Mike Blumenkrantz <[email protected]> Date: Tue Jan 21 14:53:50 2020 -0500 tests/gesture: add extra event callback to verify event multiplication is fixed Differential Revision: https://phab.enlightenment.org/D11145 --- src/tests/elementary/efl_ui_test_gesture.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tests/elementary/efl_ui_test_gesture.c b/src/tests/elementary/efl_ui_test_gesture.c index b6c251aaa5..1463283673 100644 --- a/src/tests/elementary/efl_ui_test_gesture.c +++ b/src/tests/elementary/efl_ui_test_gesture.c @@ -60,6 +60,13 @@ gesture_cb(void *data , const Efl_Event *ev) count[efl_gesture_state_get(g) - 1]++; } +static void +test_cb(void *data EINA_UNUSED , const Efl_Event *ev EINA_UNUSED) +{ +} + + + static Eo * setup(void) { @@ -73,6 +80,8 @@ setup(void) rect = efl_add(EFL_CANVAS_RECTANGLE_CLASS, win); efl_content_set(win, rect); + /* add extra random cb to verify that we aren't getting double events */ + efl_event_callback_add(rect, EFL_EVENT_GESTURE_MOMENTUM, test_cb, NULL); #define WATCH(type) \ efl_event_callback_add(rect, EFL_EVENT_GESTURE_##type, gesture_cb, &count[(type)]) WATCH(TAP); --
