animation: Accept ms as u32

Less boilerplate elsewhere.
This commit is contained in:
Ivan Molodetskikh
2024-02-07 16:32:38 +04:00
parent f9085db564
commit 753a90430a
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -401,7 +401,7 @@ impl<W: LayoutElement> Workspace<W> {
self.view_offset_anim = Some(Animation::new(
self.view_offset as f64,
new_view_offset as f64,
Duration::from_millis(250),
250,
));
}