Deprecate old DragValue constructors in favor of DragValue::new

This commit is contained in:
Emil Ernerfeldt
2021-03-27 16:09:09 +01:00
parent de439b6e21
commit 5011623744
9 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -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();
});