Skip to content

Commit

Permalink
fix dropdown selections to not default to last item.
Browse files Browse the repository at this point in the history
  • Loading branch information
ballaswag committed Apr 14, 2024
1 parent 44d11fc commit b53c308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lv_touch_calibration/lv_tc.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void lv_tc_compute_coeff(lv_point_t *scrP, lv_point_t *tchP, bool save) { //Th
}

lv_point_t _lv_tc_transform_point_indev(lv_indev_data_t *data) {
if(data->state == LV_INDEV_STATE_PRESSED) {
if(data->state == LV_INDEV_STATE_PRESSED || data->state == LV_INDEV_STATE_RELEASED) {
return lv_tc_transform_point(data->point);
} else {
//Reject invalid points if the touch panel is in released state
Expand Down

0 comments on commit b53c308

Please sign in to comment.