Skip to content

Commit

Permalink
fix(lvgl): Fix touch width screen when rotated
Browse files Browse the repository at this point in the history
  • Loading branch information
jgauchia committed Dec 11, 2024
1 parent 74fc51f commit be2f89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lvgl/src/lvglSetup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void IRAM_ATTR touchRead(lv_indev_t *indev_driver, lv_indev_data_t *data)
}
else if (lv_display_get_rotation(display) == LV_DISPLAY_ROTATION_270)
{
data->point.x = 320 - touchY;
data->point.x = TFT_WIDTH - touchY;
data->point.y = touchX;
}
data->state = LV_INDEV_STATE_PRESSED;
Expand Down

0 comments on commit be2f89c

Please sign in to comment.