input_window = ecore_x_window_input_new(zone->container->win, 0, 0, 1, 1);
ecore_x_window_show(input_window);
- if (edge == E_ZONE_EDGE_NONE)
+ /* if (edge == E_ZONE_EDGE_NONE) */
{
if (!e_grabinput_get(input_window, 0, input_window))
return 0;
(ECORE_EVENT_MOUSE_WHEEL,
_evry_cb_mouse, win));
- if (edge)
+ if (0) /* (edge) */
{
win->handlers = eina_list_append
(win->handlers, ecore_event_handler_add
}
}
+#define SLIDE_RESISTANCE 80
+
static void
_view_cb_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
if ((sd->mouse_button == 1) &&
(sd->cur_item == sd->it_down))
{
- if (ev->cur.canvas.x - sd->mouse_x > 100)
+ if (ev->cur.canvas.x - sd->mouse_x > SLIDE_RESISTANCE)
{
sd->it_down = NULL;
sd->mouse_x = 0;
else
evry_selectors_switch(-1, EINA_TRUE);
}
- else if (sd->mouse_x - ev->cur.canvas.x > 100)
+ else if (sd->mouse_x - ev->cur.canvas.x > SLIDE_RESISTANCE)
{
edje_object_signal_emit(sd->view->bg, "e,action,hide,into", "e");
edje_object_signal_emit(sd->view->bg, "e,action,hide,back", "e");