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)
downloadefl-27630114ef034ca15711d8565e4777a1519a7cd6.tar.gz
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,
ev->action = EFL_POINTER_ACTION_IN;
evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_IN, evt,
event_id2, EFL_EVENT_POINTER_IN);
- if ((cur_pt.x != prev_pt.x) && (cur_pt.y != prev_pt.y))
+ if ((cur_pt.x != prev_pt.x) || (cur_pt.y != prev_pt.y))
{
ev->action = EFL_POINTER_ACTION_MOVE;
evas_object_event_callback_call(eo_child, child, EVAS_CALLBACK_MOUSE_MOVE, evt,