diff --git a/Widgets/EventLoopSDL.cpp b/Widgets/EventLoopSDL.cpp index f607c3be152..383a8731580 100644 --- a/Widgets/EventLoopSDL.cpp +++ b/Widgets/EventLoopSDL.cpp @@ -46,6 +46,9 @@ void EventLoopSDL::waitForEvent() case SDL_MOUSEBUTTONDOWN: postEvent(&AbstractScreen::the(), make(Event::MouseDown, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); return; + case SDL_MOUSEBUTTONUP: + postEvent(&AbstractScreen::the(), make(Event::MouseUp, sdlEvent.button.x, sdlEvent.button.y, toMouseButton(sdlEvent.button.button))); + return; } } }