mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	Disabled: items more consistently release active id if the active item got disabled. (#211) (amend 2952525)
				
					
				
			This commit is contained in:
		| @@ -611,10 +611,6 @@ bool ImGui::ButtonBehavior(const ImRect& bb, ImGuiID id, bool* out_hovered, bool | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     // Release active id if turning disabled | ||||
|     if (g.ActiveId == id && (g.CurrentItemFlags & ImGuiItemFlags_Disabled)) | ||||
|         ClearActiveID(); | ||||
|  | ||||
|     // Process while held | ||||
|     bool held = false; | ||||
|     if (g.ActiveId == id) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user