mirror of
https://github.com/gwm17/implot.git
synced 2024-11-13 22:48:50 -05:00
fix context menu axis drag
This commit is contained in:
parent
8eb6bba63b
commit
044ac47f51
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user