diff --git a/Volt/Sandbox/src/Sandbox/ImGuiRenderer.cpp b/Volt/Sandbox/src/Sandbox/ImGuiRenderer.cpp index 99ab63f93..d4998b1db 100644 --- a/Volt/Sandbox/src/Sandbox/ImGuiRenderer.cpp +++ b/Volt/Sandbox/src/Sandbox/ImGuiRenderer.cpp @@ -493,7 +493,8 @@ float Sandbox::DrawTitlebar() ImGui::SameLine(); const float w = ImGui::GetContentRegionAvail().x; - ImGui::InvisibleButton("##titlebarDragZone", ImVec2(w - buttonsAreaWidth, titlebarHeight)); + const float titleBarDragWidth = w - buttonsAreaWidth; + ImGui::InvisibleButton("##titlebarDragZone", ImVec2(std::max(titleBarDragWidth, 1.0f), titlebarHeight)); myTitlebarHovered = ImGui::IsItemHovered(); ImGui::SameLine();