summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-05-09 09:25:27 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-09 09:25:27 +0100
commit27630114ef034ca15711d8565e4777a1519a7cd6 (patch)
tree565abe21d5fa83681d2e733bef9148a7401a1416
parent823b7b05cd233d052fd92d2b1e275dd244863f17 (diff)
evas/events: fix conditional for emitting source mouse move events
Summary: this should match all other similar cases when determining whether to emit the event by checking whether at least one coord has changed, not both Depends on D11791 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11792
-rw-r--r--src/lib/evas/canvas/evas_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c
index 4596a26419..ff080eb913 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -815,7 +815,7 @@ _evas_event_source_mouse_move_events(Evas_Object *eo_obj, Evas *eo_e,
815 ev->action = EFL_POINTER_ACTION_IN; 815 ev->action = EFL_POINTER_ACTION_IN;
816 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt, 816 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt,
817 event_id2, EFL_EVENT_POINTER_IN); 817 event_id2, EFL_EVENT_POINTER_IN);
818 if ((cur_pt.x != prev_pt.x) && (cur_pt.y != prev_pt.y)) 818 if ((cur_pt.x != prev_pt.x) || (cur_pt.y != prev_pt.y))
819 { 819 {
820 ev->action = EFL_POINTER_ACTION_MOVE; 820 ev->action = EFL_POINTER_ACTION_MOVE;
821 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt, 821 evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt,