diff --git a/desktop_version/src/KeyPoll.cpp b/desktop_version/src/KeyPoll.cpp index 3a66b23b6f..638677df0f 100644 --- a/desktop_version/src/KeyPoll.cpp +++ b/desktop_version/src/KeyPoll.cpp @@ -543,6 +543,11 @@ void KeyPoll::Poll(void) } } + if (evt.tfinger.fingerId == touch::swipe_finger) + { + touch::swipe_finger = -1; + } + raw_mousex = evt.tfinger.x * screen_width; raw_mousey = evt.tfinger.y * screen_height; leftbutton = 0; diff --git a/desktop_version/src/Touch.h b/desktop_version/src/Touch.h index 3e9706f628..db6d96d988 100644 --- a/desktop_version/src/Touch.h +++ b/desktop_version/src/Touch.h @@ -109,6 +109,7 @@ namespace touch extern bool scroll; extern TouchControlStyle style; extern int swipe_delta; + extern SDL_FingerID swipe_finger; void refresh_buttons(void); void update_sliders();