mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Drag and Drop: Added ImGuiDragDropFlags_SourceNoHoldToOpenOthers flag.
This commit is contained in:
		@@ -5842,7 +5842,7 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool
 | 
			
		||||
    bool hovered = ItemHoverable(bb, id);
 | 
			
		||||
 | 
			
		||||
    // Special mode for Drag and Drop where holding button pressed for a long time while dragging another item triggers the button
 | 
			
		||||
    if ((flags & ImGuiButtonFlags_PressedOnDragDropHold) && g.DragDropActive && !hovered)
 | 
			
		||||
    if ((flags & ImGuiButtonFlags_PressedOnDragDropHold) && g.DragDropActive && !(g.DragDropSourceFlags & ImGuiDragDropFlags_SourceNoHoldToOpenOthers))
 | 
			
		||||
        if (IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByActiveItem))
 | 
			
		||||
        {
 | 
			
		||||
            hovered = true;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user