#include "e_mod_accessibility_conf.h"
#define HISTORY_MAX 8
+#define ONGOING_HOVER_GESTURE_INTERPRETATION_INTERVAL 200
double MAGIC_NUMBER = 987654321.0;
Eina_Bool app_support_gestures;
Eina_Bool gestures_supported_by_app [ GESTURES_COUNT ];
+unsigned int _last_hover_event_time = -1;
typedef enum {
FLICK_DIRECTION_UNDEFINED,
if (cov->hover_gesture.timer)
ecore_timer_del(cov->hover_gesture.timer);
cov->hover_gesture.timer = NULL;
+ _last_hover_event_time = -1;
// aditionally emit event to complete sequence
if (cov->hover_gesture.longpressed || scrolling)
{
}
cov->hover_gesture.x[i] = ev->root.x;
cov->hover_gesture.y[i] = ev->root.y;
- _hover_event_emit(cov, GESTURE_ONGOING);
+ if ((_last_hover_event_time == -1) ||
+ (abs(ev->timestamp - _last_hover_event_time) > ONGOING_HOVER_GESTURE_INTERPRETATION_INTERVAL))
+ {
+ _hover_event_emit(cov, GESTURE_ONGOING);
+ _last_hover_event_time = ev->timestamp;
+ }
}
}
object_needs_scroll_from_x = -1;
object_needs_scroll_from_y = -1;
scrolling = EINA_FALSE;
+ _last_hover_event_time = -1;
zone = e_zone_current_get();
if (zone)