mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
format code
This commit is contained in:
parent
1a6e715958
commit
9a2438cad4
@ -667,7 +667,7 @@ ret_t window_manager_dispatch_input_event(widget_t* widget, event_t* e) {
|
||||
pointer_event_t* evt = (pointer_event_t*)e;
|
||||
pointer_event_rotate(evt, system_info());
|
||||
|
||||
if(evt->x != wm->last_x || evt->y != wm->last_y) {
|
||||
if (evt->x != wm->last_x || evt->y != wm->last_y) {
|
||||
wm->last_x = evt->x;
|
||||
wm->last_y = evt->y;
|
||||
|
||||
@ -688,7 +688,7 @@ ret_t window_manager_dispatch_input_event(widget_t* widget, event_t* e) {
|
||||
evt->ctrl = wm->ctrl;
|
||||
evt->shift = wm->shift;
|
||||
widget_on_pointer_up(widget, evt);
|
||||
|
||||
|
||||
wm->last_x = evt->x;
|
||||
wm->last_y = evt->y;
|
||||
wm->pressed = FALSE;
|
||||
|
@ -84,7 +84,7 @@ static ret_t list_item_on_event(widget_t* widget, event_t* e) {
|
||||
pointer_event_t* evt = (pointer_event_t*)e;
|
||||
uint32_t dy = tk_abs(evt->y - list_item->down.y);
|
||||
|
||||
if(dy > 6) {
|
||||
if (dy > 6) {
|
||||
list_item->dragged = TRUE;
|
||||
list_item_remove_timer(widget);
|
||||
widget_set_state(widget, WIDGET_STATE_NORMAL);
|
||||
|
Loading…
Reference in New Issue
Block a user