Skip to content

Commit 62abde5

Browse files
committed
DragFloat() latch value internally, allows finer control, honor precision settings, slow step with integer works #180
1 parent b308d27 commit 62abde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ namespace ImGui
317317
// Widgets: Drags (tip: ctrl+click on a drag box to input text)
318318
// ImGui 1.38+ work-in-progress, may change name or API.
319319
IMGUI_API bool DragFloat(const char* label, float* v, float v_step = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* display_format = "%.3f"); // If v_max >= v_max we have no bound
320-
IMGUI_API bool DragInt(const char* label, int* v, int v_step = 1, int v_min = 0, int v_max = 0, const char* display_format = "%.0f"); // If v_max >= v_max we have no bound
320+
IMGUI_API bool DragInt(const char* label, int* v, int v_step = 1, int v_min = 0, int v_max = 0, const char* display_format = "%.0f"); // If v_max >= v_max we have no bound
321321

322322
// Widgets: Input
323323
IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags = 0, ImGuiTextEditCallback callback = NULL, void* user_data = NULL);

0 commit comments

Comments
 (0)