diff --git a/ui.c b/ui.c index 9d8ec1f..7e3336d 100644 --- a/ui.c +++ b/ui.c @@ -2177,7 +2177,8 @@ void ui_process_touch(void) int touch_x, touch_y; int status = touch_check(); if (status == EVT_TOUCH_PRESSED || status == EVT_TOUCH_DOWN) { - touch_position(&touch_x, &touch_y); switch (ui_mode) { + touch_position(&touch_x, &touch_y); + switch (ui_mode) { case UI_NORMAL: // Try drag marker if (touch_pickup_marker(touch_x, touch_y))