mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Deprecate old DragValue constructors in favor of DragValue::new
This commit is contained in:
@@ -67,7 +67,7 @@ impl super::View for Scrolling {
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("Scroll to a specific offset:");
|
||||
go_to_scroll_offset |= ui
|
||||
.add(DragValue::f32(&mut self.offset).speed(1.0).suffix("px"))
|
||||
.add(DragValue::new(&mut self.offset).speed(1.0).suffix("px"))
|
||||
.dragged();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user