Double click for bottom quick menu bug solved

master
erikkaashoek 5 years ago
parent 0c0d62e131
commit 8921e10de4

@ -370,7 +370,7 @@ extern uint16_t graph_bottom;
#define FORM_BUTTON_BORDER 2 #define FORM_BUTTON_BORDER 2
// Form button (at center screen better be less LCD_WIDTH - 2*OFFSETX) // Form button (at center screen better be less LCD_WIDTH - 2*OFFSETX)
#define MENU_FORM_WIDTH 256 #define MENU_FORM_WIDTH (LCD_WIDTH - 2*OFFSETX)
// Num Input height at bottom // Num Input height at bottom
#define NUM_INPUT_HEIGHT 32 #define NUM_INPUT_HEIGHT 32

@ -2587,6 +2587,7 @@ touch_lever_mode_select(void)
else else
ui_mode_keypad(KM_START); ui_mode_keypad(KM_START);
ui_process_keypad(); ui_process_keypad();
return TRUE;
} }
if (touch_x > FREQUENCIES_XPOS2 - 50 && touch_x < FREQUENCIES_XPOS2 +50) { if (touch_x > FREQUENCIES_XPOS2 - 50 && touch_x < FREQUENCIES_XPOS2 +50) {
touch_wait_release(); touch_wait_release();
@ -2604,8 +2605,10 @@ touch_lever_mode_select(void)
else else
ui_mode_keypad(KM_STOP); ui_mode_keypad(KM_STOP);
ui_process_keypad(); ui_process_keypad();
return TRUE;
} }
select_lever_mode(touch_x < FREQUENCIES_XPOS2 ? LM_CENTER : LM_SPAN); select_lever_mode(touch_x < FREQUENCIES_XPOS2 ? LM_CENTER : LM_SPAN);
touch_wait_release();
return TRUE; return TRUE;
} }
if (touch_x <OFFSETX) if (touch_x <OFFSETX)

Loading…
Cancel
Save

Powered by TurnKey Linux.