mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	InputText: Fixed selection background starts rendering one frame after the cursor movement when first transitioning from no-selection to has-selection. (Bug in 1.69) (#2436) [@Nazg-Gul]
This commit is contained in:
		| @@ -36,6 +36,8 @@ HOW TO UPDATE? | |||||||
| Breaking Changes: | Breaking Changes: | ||||||
|  |  | ||||||
| Other Changes: | Other Changes: | ||||||
|  | - InputText: Fixed selection background starts rendering one frame after the cursor movement | ||||||
|  |   when first transitioning from no-selection to has-selection. (Bug in 1.69) (#2436) [@Nazg-Gul] | ||||||
| - GetMouseDragDelta(): also returns the delta on the mouse button released frame. (#2419) | - GetMouseDragDelta(): also returns the delta on the mouse button released frame. (#2419) | ||||||
| - GetMouseDragDelta(): verify that mouse positions are valid otherwise returns zero. | - GetMouseDragDelta(): verify that mouse positions are valid otherwise returns zero. | ||||||
| - Examples: OpenGL: Added a dummy GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized | - Examples: OpenGL: Added a dummy GL call + comments in ImGui_ImplOpenGL3_Init() to detect uninitialized | ||||||
|   | |||||||
| @@ -3570,6 +3570,9 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ | |||||||
|                 MemFree(clipboard_filtered); |                 MemFree(clipboard_filtered); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         // Update render selection flag after events have been handled, so selection highlight can be displayed during the same frame. | ||||||
|  |         render_selection |= state->HasSelection() && (RENDER_SELECTION_WHEN_INACTIVE || render_cursor); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     // Process callbacks and apply result back to user's buffer. |     // Process callbacks and apply result back to user's buffer. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 omar
					omar