Fix button latching on Windows after drag and drop operation

This commit is contained in:
2025-01-21 19:08:38 +02:00
parent 279b3f8d9a
commit 998ed87029

View File

@@ -601,7 +601,8 @@ DragDropEffect Window::DoDragDrop(const StringView& data)
::POINT point;
::GetCursorPos(&point);
#if PLATFORM_SDL
Input::Mouse->OnMouseUp(Float2((float)point.x, (float)point.y), MouseButton::Left, (Window*)this);
// Reset the internal button state in SDL
SendMessageA((HWND)_handle, WM_LBUTTONUP, 0, MAKELPARAM(point.x, point.y));
#else
Input::Mouse->OnMouseUp(Float2((float)point.x, (float)point.y), MouseButton::Left, this);
#endif