SINGLE_TOUCH_NAVIGATION Follow Up (#20213)

This commit is contained in:
Victor Oliveira
2020-11-20 10:46:18 -03:00
committed by GitHub
parent 0e3d86579b
commit 28e315cd69
4 changed files with 5 additions and 3 deletions

View File

@ -652,7 +652,7 @@ void menu_item(const uint8_t row, bool sel ) {
menu_line(row, sel ? COLOR_SELECTION_BG : COLOR_BACKGROUND);
#if ENABLED(TOUCH_SCREEN)
const TouchControlType tct = TERN(SINGLE_TOUCH_NAVIGATION, true, sel) ? CLICK : MENU_ITEM;
const TouchControlType tct = TERN(SINGLE_TOUCH_NAVIGATION, true, sel) ? MENU_CLICK : MENU_ITEM;
touch.add_control(tct, 0, 2 + 34 * row, TFT_WIDTH, 32, encoderTopLine + row);
#endif
}