summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/screen
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2021-03-11 02:56:59 +0100
committerUros Majstorovic <majstor@majstor.org>2021-03-11 02:56:59 +0100
commitd05eefaf7f10769ddae3840890af6a1e52440238 (patch)
tree6a2bb175c91fb3b83e5ce2d883ecf12aac740444 /fw/fe310/eos/eve/screen
parent0a11eb9d378d66387dca3178e1bd2c62e61174bd (diff)
vitrual tracking fixed
Diffstat (limited to 'fw/fe310/eos/eve/screen')
-rw-r--r--fw/fe310/eos/eve/screen/form.c10
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;
}