Slider reverse direction #854

Closed
opened 2016-09-30 09:13:05 +00:00 by wasawi · 3 comments
wasawi commented 2016-09-30 09:13:05 +00:00 (Migrated from github.com)

Just bumped into a very stupid issue but don't see how to fix it. I'm very sorry I must be missing something very obvious.
How to set the minimum value (0) on the right hand side?

    ImGui::SliderFloat("Float", &floatValue, 1.0f, 0.0f);

This has a strange behavior. The slider appears and disappears on the sides when dragging.
Again, sorry for a very basic question.

Just bumped into a very stupid issue but don't see how to fix it. I'm very sorry I must be missing something very obvious. How to set the minimum value (0) on the right hand side? ``` ImGui::SliderFloat("Float", &floatValue, 1.0f, 0.0f); ``` This has a strange behavior. The slider appears and disappears on the sides when dragging. Again, sorry for a very basic question.
ocornut commented 2016-09-30 09:24:42 +00:00 (Migrated from github.com)

Amusingly you are the first person to request that. I never tested nor tried to make the slider work this way and curiously I have not even added an assert.

So, it needs to be worked on!

Amusingly you are the first person to request that. I never tested nor tried to make the slider work this way and curiously I have not even added an assert. So, it needs to be worked on!
wasawi commented 2016-10-03 00:21:53 +00:00 (Migrated from github.com)

Thank you for your fast reply!

Thank you for your fast reply!
ocornut commented 2016-11-27 16:44:01 +00:00 (Migrated from github.com)

@wasawi This has been added now!

@wasawi This has been added now!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#854
No description provided.