diff --git a/src/render.rs b/src/render.rs index 1528f9c..f5de026 100644 --- a/src/render.rs +++ b/src/render.rs @@ -341,7 +341,7 @@ impl Lerp for f64 { println!("c: {} target:{} lerp: {} move: {}", self, other, lerped, change); } - if (*other - self) < 2.0 && diff != 0.0 { + if (*other - self).abs() < 2.0 && diff != 0.0 { return *other; }