diff options
author | Alessandro Astone <ales.astone@gmail.com> | 2019-03-28 22:26:18 +0100 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-04-05 02:12:01 +0300 |
commit | 92a8ed5eef2a3b6d139aec1e89733c96ca377f7b (patch) | |
tree | cfabd244462139991faeebd8cf15cade546a4b06 | |
parent | cfd573a6cdf81047a8cf0f435560320ffee3b10c (diff) | |
download | android_bootable_recovery-92a8ed5eef2a3b6d139aec1e89733c96ca377f7b.tar.gz android_bootable_recovery-92a8ed5eef2a3b6d139aec1e89733c96ca377f7b.tar.bz2 android_bootable_recovery-92a8ed5eef2a3b6d139aec1e89733c96ca377f7b.zip |
recovery: account for scrolling when selecting item with touch
Change-Id: I4c7623004fc45e936c73bbcf0f818c5fc4e11bea
-rw-r--r-- | screen_ui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |