return list;
}
- p = malloc(sizeof(Pointer_Event));
- memcpy(p, pe, sizeof(Pointer_Event)); /* Freed in _remove_touched_device() */
- return eina_list_append(list, p);
+ if ((pe->event_type == EVAS_CALLBACK_MOUSE_DOWN) ||
+ (pe->event_type == EVAS_CALLBACK_MULTI_DOWN))
+ { /* Add touched device on DOWN event only */
+ p = malloc(sizeof(Pointer_Event));
+ /* Freed in _remove_touched_device() */
+ memcpy(p, pe, sizeof(Pointer_Event));
+ return eina_list_append(list, p);
+ }
+
+ return list;
}
/* END - Functions to manage touched-device list */
Gesture_Info *gesture = wd->gesture[g_type];
if (!gesture ) return;
+ if (!eina_list_count(wd->touched))
+ return; /* Got move on mouse-over move */
+
Momentum_Type *st = gesture->data;
Elm_Gesture_State state_to_report = ELM_GESTURE_STATE_MOVE;
if (!st)
Gesture_Info *gesture = wd->gesture[g_type];
if (!gesture ) return;
+ if (!eina_list_count(wd->touched))
+ return; /* Got move on mouse-over move */
+
Line_Type *st = gesture->data;
if (!st)
{