diff options
Diffstat (limited to 'fw/fe310/eos/eve/screen')
-rw-r--r-- | fw/fe310/eos/eve/screen/form.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fw/fe310/eos/eve/screen/form.c b/fw/fe310/eos/eve/screen/form.c index c8a8bba..32227c9 100644 --- a/fw/fe310/eos/eve/screen/form.c +++ b/fw/fe310/eos/eve/screen/form.c @@ -56,10 +56,12 @@ static int form_handle_evt(EVEForm *form, EVEWidget *widget, EVETouch *touch, ui form->evt_lock = 1; } if (evt & EVE_TOUCH_ETYPE_TRACK_STOP) { - form->win_x0 = 0; - form->win_y0 = 0; form->evt_lock = 0; } + if ((evt & EVE_TOUCH_ETYPE_TRACK) && (touch->eevt & EVE_TOUCH_EETYPE_TRACK_Y)) { + form->p.win_y = form->win_y0 + touch->y0 - touch->y; + return 1; + } if (evt & EVE_TOUCH_ETYPE_POINT_UP) { if ((touch->eevt & EVE_TOUCH_EETYPE_TRACK_XY) == 0) { if (form->p.widget_f) eve_page_set_focus(&form->p, NULL, NULL); @@ -74,10 +76,6 @@ static int form_handle_evt(EVEForm *form, EVEWidget *widget, EVETouch *touch, ui return 1; } } - if ((evt & EVE_TOUCH_ETYPE_TRACK) && (touch->eevt & EVE_TOUCH_EETYPE_TRACK_Y)) { - form->p.win_y = form->win_y0 + touch->y0 - touch->y; - return 1; - } return 0; } |