raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=27630114ef034ca15711d8565e4777a1519a7cd6

commit 27630114ef034ca15711d8565e4777a1519a7cd6
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Sat May 9 09:25:27 2020 +0100

    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
---
 src/lib/evas/canvas/evas_events.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,

-- 


Reply via email to