}
break;
default:
- ERROR("Unknown tap");
+ ERROR("Unknown tap ntaps %d", cov->n_taps);
break;
}
}
{
if (cov->n_taps > 4)
{
- ERROR("Too many fingers");
+ ERROR("Too many fingers ntaps%d", cov->n_taps);
return;
}
}
else
{
- ERROR("Unknown finger down");
+ ERROR("Unknown finger down n_taps %d", cov->n_taps);
}
ecore_timer_reset(cov->tap_gesture_data.timer);
}
}
else
{
- ERROR("Unknown finger up, abort gesture");
+ ERROR("Unknown finger up, abort gesture n_taps %d", cov->n_taps);
cov->tap_gesture_data.started = EINA_FALSE;
}
}
int dy = ev->root.y - cov->tap_gesture_data.y_org[i];
if ((dx * dx + dy * dy) > _e_mod_config->one_finger_tap_radius * _e_mod_config->one_finger_tap_radius)
{
- ERROR("Abort tap gesture");
+ ERROR("Abort tap gesture %d", cov->n_taps);
if (cov->n_taps == 2) scrolling = EINA_TRUE;
cov->tap_gesture_data.started = EINA_FALSE;
if (cov->tap_gesture_data.timer)
Ecore_Event_Mouse_Button *ev_up, *ev_multi_up;
if (!(ev_up = malloc(sizeof(Ecore_Event_Mouse_Button))))
{
- DEBUG("NOT ENOUGH MEMORY");
+ ERROR("NOT ENOUGH MEMORY");
return EINA_FALSE;
}
memcpy(ev_up, ev, sizeof(Ecore_Event_Mouse_Button));
{
if (!(ev_multi_up = malloc(sizeof(Ecore_Event_Mouse_Button))))
{
- DEBUG("NOT ENOUGH MEMORY");
+ ERROR("NOT ENOUGH MEMORY");
return EINA_FALSE;
}
memcpy(ev_multi_up, ev, sizeof(Ecore_Event_Mouse_Button));
}
static Eina_Bool
-_is_event_on_valid_area(int type, int x, int y)
+_is_event_on_valid_area(int type, int x, int y, double radius)
{
+ if (radius >= MAGIC_NUMBER)
+ {
+ return EINA_TRUE;
+ }
+
E_Zone *zone;
E_Accessibility_Conf_Edd* conf;
Eina_Bool is_invalid_area = EINA_FALSE;
}
cover->finger_data.n_taps++;
- if (is_invalid_area || cover->finger_data.invalid_pressed)
+ if (cover->finger_data.invalid_pressed)
return EINA_FALSE;
}
else if (ECORE_EVENT_MOUSE_BUTTON_UP == type)
if (type == ECORE_EVENT_MOUSE_BUTTON_DOWN)
{
Ecore_Event_Mouse_Button *ev = event;
- return _is_event_on_valid_area(type, ev->x, ev->y);
+ return _is_event_on_valid_area(type, ev->x, ev->y, ev->multi.radius);
}
else if (type == ECORE_EVENT_MOUSE_BUTTON_UP)
{
- Ecore_Event_Mouse_Button *ev = event;
- return _is_event_on_valid_area(type, ev->x, ev->y);
+ Ecore_Event_Mouse_Button *ev = event;
+ return _is_event_on_valid_area(type, ev->x, ev->y, ev->multi.radius);
}
else if (type == ECORE_EVENT_MOUSE_MOVE)
{
Ecore_Event_Mouse_Move *ev = event;
- return _is_event_on_valid_area(type, ev->x, ev->y);
+ return _is_event_on_valid_area(type, ev->x, ev->y, ev->multi.radius);
}
return EINA_TRUE;