Pass parameters to button_click_event

This commit is contained in:
Edward Firmo
2024-12-22 01:37:07 +01:00
parent 4d8107faf2
commit c65acc3298
3 changed files with 14 additions and 7 deletions

View File

@@ -131,6 +131,7 @@ namespace esphome {
state == TOUCH_STATE_SWIPE_LEFT ||
state == TOUCH_STATE_SWIPE_RIGHT ||
state == TOUCH_STATE_MULTI_TOUCH) &&
// Multi-touch events may have x < 0, all other events require valid x position
(uart_received_bytes[6] >= 0 || state == TOUCH_STATE_MULTI_TOUCH);
}