when the mouse cursor goes to outside of the window, then the mouse up event in the rect would be skipped (is it correct?)
So the down would be never 0 again.
We can make it simpler and working better also.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/expedite@71713
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
}
static Evas_Coord down_x, down_y;
-static int down = 0;
static int down_menu_sel = 0;
static void
{
down_x = ev->canvas.x;
down_y = ev->canvas.y;
- down++;
down_menu_sel = menu_sel;
}
}
if ((((dx * dx) + (dy * dy)) < (20 * 20)) &&
(menu_sel == down_menu_sel))
_ui_select();
- down--;
}
else
{
Evas_Event_Mouse_Move *ev;
ev = event_info;
- if (!down) return;
+ if (ev->buttons != 1) return;
if (menu_active)
{
menu_sel = down_menu_sel + ((ev->cur.canvas.x - down_x) / 25);