mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-03 03:52:36 +00:00
Don't send relative motion while in a modal loop
This fixes queuing up a bunch of relative motion events while moving or resizing a window.
This commit is contained in:
@@ -624,7 +624,7 @@ static void WIN_HandleRawMouseInput(Uint64 timestamp, SDL_VideoData *data, HANDL
|
||||
|
||||
SDL_WindowData *windowdata = window->internal;
|
||||
|
||||
if (haveMotion) {
|
||||
if (haveMotion && !windowdata->in_modal_loop) {
|
||||
if (!isAbsolute) {
|
||||
SDL_SendMouseMotion(timestamp, window, mouseID, true, (float)dx, (float)dy);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user