From 92a8ed5eef2a3b6d139aec1e89733c96ca377f7b Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Thu, 28 Mar 2019 22:26:18 +0100 Subject: recovery: account for scrolling when selecting item with touch Change-Id: I4c7623004fc45e936c73bbcf0f818c5fc4e11bea --- screen_ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screen_ui.cpp b/screen_ui.cpp index 066a39da..c3fe19a3 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -1228,7 +1228,7 @@ int ScreenRecoveryUI::SelectMenu(const Point& point) { int row = -1, col = -1; switch (menu_type_) { case MT_LIST: - sel = (point.y() - menu_start_y_) / (menu_char_height_ * 3); + sel = (point.y() - menu_start_y_) / (menu_char_height_ * 3) + menu_show_start; break; case MT_GRID: row = (point.y() - menu_start_y_) / (gr_fb_height() * 3 / 16); -- cgit v1.2.3