_e_mod_config->one_finger_flick_min_length = 100;
_e_mod_config->one_finger_flick_max_time = 400;
- _e_mod_config->one_finger_hover_longpress_timeout = 0.41;
+ _e_mod_config->one_finger_hover_longpress_timeout = 0.4;
_e_mod_config->two_fingers_hover_longpress_timeout = 0.1;
- _e_mod_config->one_finger_tap_timeout = 0.4;
+ _e_mod_config->one_finger_tap_timeout = 0.3;
_e_mod_config->one_finger_tap_radius = 100;
_e_mod_config->two_finger_flick_to_scroll_timeout = 100;
_e_mod_config->two_finger_flick_to_scroll_min_length = 50;
_hover_gesture_timer_reset(Cover *cov, double time)
{
DEBUG("Hover timer reset");
+
cov->hover_gesture.longpressed = EINA_FALSE;
if (cov->hover_gesture.timer)
{
cov->hover_gesture.state = GESTURE_NOT_STARTED;
}
+void __inverse_transform_coordinates(int *ax, int *ay, int win_angle)
+{
+ int w, h, tmp;
+
+ ecore_wl_screen_size_get(&w, &h);
+ switch (win_angle) {
+ case 90:
+ tmp = *ax;
+ *ax = *ay;
+ *ay = h - tmp;
+ break;
+ case 270:
+ tmp = *ax;
+ *ax = w - *ay;
+ *ay = tmp;
+ break;
+ }
+}
+
static void
_hover_event_emit(Cover *cov, gesture_state_e state)
{
{
if (highlighted_object_x != -1 && highlighted_object_y != -1)
{
+ __inverse_transform_coordinates(&highlighted_object_x, &highlighted_object_y, cov->angle);
cov->tap_n_hold_gesture_data.ev_down->x = highlighted_object_x;
cov->tap_n_hold_gesture_data.ev_down->y = highlighted_object_y;
cov->tap_n_hold_gesture_data.ev_down->root.x = highlighted_object_x;