Skip to content

Commit

Permalink
never warp mouse for touch
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Feb 28, 2024
1 parent 7030272 commit 3d41b99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/lvgl/input/lv_sdl_drv_pointer_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void indev_pointer_read(lv_indev_drv_t *drv, lv_indev_data_t *data) {
data->state = e.motion.state;
data->point = (lv_point_t) {.x = e.motion.x, .y = e.motion.y};
#if HAVE_RELATIVE_MOUSE_HACK
if (warped) {
if (warped || e.motion.which == SDL_TOUCH_MOUSEID) {
warped = false;
} else if (app->session != NULL && session_accepting_input(app->session) && app_get_mouse_relative()) {
int w, h;
Expand Down

0 comments on commit 3d41b99

Please sign in to comment.