eolite: fixed event

git-svn-id: svn://kolibrios.org@5658 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pavelyakov 2015-08-03 00:06:27 +00:00
parent db3c02d4c3
commit 1de84d6825
2 changed files with 6 additions and 4 deletions

View File

@ -252,7 +252,7 @@ void main()
}
}
}
if (files.MouseOver(mouse.x, mouse.y))&&((mouse.down)||(mouse.dblclick))
if (files.MouseOver(mouse.x, mouse.y))&&((mouse.down|mouse.dblclick|mouse.up))
{
//select/open file {
if (mouse.key&MOUSE_LEFT)&&((mouse.down)||(mouse.dblclick))
@ -260,12 +260,12 @@ void main()
if (mouse.y>=files.y)//&&(mouse.click)
{
id = mouse.y - files.y / files.line_h;
if (files.current!=id)
IF (files.current!=id)
{
mouse.clearTime();
if(id<files.visible) List_Current(id-files.current);
if(!mouse.up)&&(id<files.visible) List_Current(id-files.current);
}
else if(mouse.dblclick)Open(0);
else IF(mouse.dblclick)Open(0);
}
}
// } select/open file

View File

@ -30,6 +30,8 @@ char program_path[4096];
#define evNetwork 8
#define evDebug 9
#define EVENT_MOUSE case 6: mouse.get();
//Button options
#define BT_DEL 0x80000000
#define BT_HIDE 0x40000000