Removed ImGuiButtonFlags_MouseButtonDefault_.

This commit is contained in:
ocornut
2024-06-06 17:20:32 +02:00
parent 2a418f054d
commit 67d886fd63
4 changed files with 7 additions and 6 deletions

View File

@@ -488,7 +488,7 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool
// Default only reacts to left mouse button
if ((flags & ImGuiButtonFlags_MouseButtonMask_) == 0)
flags |= ImGuiButtonFlags_MouseButtonDefault_;
flags |= ImGuiButtonFlags_MouseButtonLeft;
// Default behavior requires click + release inside bounding box
if ((flags & ImGuiButtonFlags_PressedOnMask_) == 0)