From 044ac47f5161d257c32e0a97377c87164134195c Mon Sep 17 00:00:00 2001 From: epezent Date: Mon, 24 Aug 2020 09:04:45 -0500 Subject: [PATCH] fix context menu axis drag --- implot.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/implot.cpp b/implot.cpp index ce67c34..c113c2b 100644 --- a/implot.cpp +++ b/implot.cpp @@ -1317,7 +1317,6 @@ inline void ShowAxisContextMenu(ImPlotAxisState& state) { ImGui::SameLine(); BeginDisabledControls(state.LockMin); - //DragFloat("Min", &state.Axis->Range.Min, 0.01f * (float)state.Axis->Range.Size(), -HUGE_VAL, state.Axis->Range.Max - DBL_EPSILON); DragFloat("Min", &state.Axis->Range.Min, (float)drag_speed, -HUGE_VAL, state.Axis->Range.Max - DBL_EPSILON); EndDisabledControls(state.LockMin); @@ -1328,7 +1327,6 @@ inline void ShowAxisContextMenu(ImPlotAxisState& state) { ImGui::SameLine(); BeginDisabledControls(state.LockMax); - //DragFloat("Max", &state.Axis->Range.Max, 0.01f * (float)state.Axis->Range.Size(), state.Axis->Range.Min + DBL_EPSILON, HUGE_VAL); DragFloat("Max", &state.Axis->Range.Max, (float)drag_speed, state.Axis->Range.Min + DBL_EPSILON, HUGE_VAL); EndDisabledControls(state.LockMax);