Skip to content

Regression: dragging value of slider no longer supports out of range values #4881

@ishbosamiya

Description

@ishbosamiya

Describe the bug
Dragging the value part of the slider in 0.27 allowed out of range values when using egui::Slider::clamp_to_range(false). In 0.28, dragging forces the value to be in the slider's range. Setting a value out of range via keyboard input works as expected.

To Reproduce

  • Create a slider with egui::Slider::clamp_to_range set to false.
  • Try to drag the value part of the slider outside the range of the slider.

Expected behavior
Dragging the value part of the slider should allow going out of the range of the slider if egui::Slider::clamp_to_range is set to false.

Screenshots

egui_slider_dragging_regression_in_v0_28.mp4

Additional context
It seems like the changes introduced by #4728 caused this change in behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokenegui

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions