mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01:00 
			
		
		
		
	WantCaptureMouse: Tweaked logic so WantCaptureMouse can stay false when e.g. hovering over void while an InputText() is active. (#621)
This commit is contained in:
		| @@ -2295,7 +2295,7 @@ void ImGui::NewFrame() | ||||
|     if (g.WantCaptureMouseNextFrame != -1) | ||||
|         g.IO.WantCaptureMouse = (g.WantCaptureMouseNextFrame != 0); | ||||
|     else | ||||
|         g.IO.WantCaptureMouse = (mouse_avail_to_imgui && (g.HoveredWindow != NULL || mouse_any_down)) || (g.ActiveId != 0) || (!g.OpenPopupStack.empty()); | ||||
|         g.IO.WantCaptureMouse = (mouse_avail_to_imgui && (g.HoveredWindow != NULL || mouse_any_down)) || (!g.OpenPopupStack.empty()); | ||||
|     g.IO.WantCaptureKeyboard = (g.WantCaptureKeyboardNextFrame != -1) ? (g.WantCaptureKeyboardNextFrame != 0) : (g.ActiveId != 0); | ||||
|     g.IO.WantTextInput = (g.WantTextInputNextFrame != -1) ? (g.WantTextInputNextFrame != 0) : 0; | ||||
|     g.MouseCursor = ImGuiMouseCursor_Arrow; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user