@@ -947,7 +947,7 @@ static void OnMouseEvent(LCUI_SysEvent sys_ev, void *arg)
947947 ev .button .x = pos .x ;
948948 ev .button .y = pos .y ;
949949 ev .button .button = sys_ev -> button .button ;
950- Widget_PostEvent (target , & ev , NULL , NULL );
950+ Widget_TriggerEvent (target , & ev , NULL );
951951 self .click .interval = DBLCLICK_INTERVAL ;
952952 if (ev .button .button == LCUI_KEY_LEFTBUTTON &&
953953 self .click .widget == target ) {
@@ -969,7 +969,7 @@ static void OnMouseEvent(LCUI_SysEvent sys_ev, void *arg)
969969 ev .button .x = pos .x ;
970970 ev .button .y = pos .y ;
971971 ev .button .button = sys_ev -> button .button ;
972- Widget_PostEvent (target , & ev , NULL , NULL );
972+ Widget_TriggerEvent (target , & ev , NULL );
973973 if (self .targets [WST_ACTIVE ] != target ||
974974 ev .button .button != LCUI_KEY_LEFTBUTTON ) {
975975 self .click .x = 0 ;
@@ -980,7 +980,7 @@ static void OnMouseEvent(LCUI_SysEvent sys_ev, void *arg)
980980 break ;
981981 }
982982 ev .type = LCUI_WEVENT_CLICK ;
983- Widget_PostEvent (target , & ev , NULL , NULL );
983+ Widget_TriggerEvent (target , & ev , NULL );
984984 Widget_OnMouseDownEvent (NULL );
985985 if (self .click .widget != target ) {
986986 self .click .x = 0 ;
@@ -995,7 +995,7 @@ static void OnMouseEvent(LCUI_SysEvent sys_ev, void *arg)
995995 self .click .y = 0 ;
996996 self .click .time = 0 ;
997997 self .click .widget = NULL ;
998- Widget_PostEvent (target , & ev , NULL , NULL );
998+ Widget_TriggerEvent (target , & ev , NULL );
999999 }
10001000 Widget_OnMouseDownEvent (NULL );
10011001 break ;
@@ -1008,14 +1008,14 @@ static void OnMouseEvent(LCUI_SysEvent sys_ev, void *arg)
10081008 self .click .time = 0 ;
10091009 self .click .widget = NULL ;
10101010 }
1011- Widget_PostEvent (target , & ev , NULL , NULL );
1011+ Widget_TriggerEvent (target , & ev , NULL );
10121012 break ;
10131013 case LCUI_MOUSEWHEEL :
10141014 ev .type = LCUI_WEVENT_MOUSEWHEEL ;
10151015 ev .wheel .x = pos .x ;
10161016 ev .wheel .y = pos .y ;
10171017 ev .wheel .delta = sys_ev -> wheel .delta ;
1018- Widget_PostEvent (target , & ev , NULL , NULL );
1018+ Widget_TriggerEvent (target , & ev , NULL );
10191019 default :
10201020 return ;
10211021 }
0 commit comments