Skip to content

Commit 554e29c

Browse files
committed
Fix
1 parent c97172f commit 554e29c

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

crates/egui_router/src/transition.rs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,11 @@ impl ActiveTransition {
208208
pub fn progress(&self) -> f32 {
209209
self.progress
210210
}
211-
211+
212212
pub fn set_progress(&mut self, progress: f32) {
213213
self.progress = progress.clamp(0.0, 1.0);
214214
}
215215

216-
pub fn resume_automatic(&mut self) {
217-
self.manual_control = false;
218-
}
219-
220216
pub fn with_default_duration(mut self, duration: Option<f32>) -> Self {
221217
if self.duration.is_none() {
222218
self.duration = duration;
@@ -254,11 +250,9 @@ impl ActiveTransition {
254250

255251
if self.backward {
256252
with_temp_auto_id(ui, in_id, |ui| {
257-
let mut out_ui = self.out.create_child_ui(
258-
ui,
259-
eased_t,
260-
Id::new("router_child").with(in_id),
261-
);
253+
let mut out_ui =
254+
self.out
255+
.create_child_ui(ui, eased_t, Id::new("router_child").with(in_id));
262256
content_in(&mut out_ui, state);
263257
});
264258

@@ -285,11 +279,9 @@ impl ActiveTransition {
285279
}
286280

287281
with_temp_auto_id(ui, in_id, |ui| {
288-
let mut in_ui = self.in_.create_child_ui(
289-
ui,
290-
eased_t,
291-
Id::new("router_child").with(in_id),
292-
);
282+
let mut in_ui =
283+
self.in_
284+
.create_child_ui(ui, eased_t, Id::new("router_child").with(in_id));
293285
content_in(&mut in_ui, state);
294286
});
295287
}

0 commit comments

Comments
 (0)