mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Fix upside down slider in the vertical orientation (#3424)
This commit is contained in:
@@ -97,6 +97,16 @@ impl Rangef {
|
||||
}
|
||||
}
|
||||
|
||||
/// Flip the min and the max
|
||||
#[inline]
|
||||
#[must_use]
|
||||
pub fn flip(self) -> Self {
|
||||
Self {
|
||||
min: self.max,
|
||||
max: self.min,
|
||||
}
|
||||
}
|
||||
|
||||
/// The overlap of two ranges, i.e. the range that is contained by both.
|
||||
///
|
||||
/// If the ranges do not overlap, returns a range with `span() < 0.0`.
|
||||
|
||||
Reference in New Issue
Block a user