From 1f699afad1679cfff84f5fdee35b3efe7a96f318 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Mon, 21 Jun 2021 23:20:23 -0700 Subject: [PATCH] fix cursor disappearing glitch --- src/renderer/cursor_renderer/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/renderer/cursor_renderer/mod.rs b/src/renderer/cursor_renderer/mod.rs index 9e67a6c..fc6c037 100644 --- a/src/renderer/cursor_renderer/mod.rs +++ b/src/renderer/cursor_renderer/mod.rs @@ -94,16 +94,12 @@ impl Corner { self.start_position = self.current_position; self.previous_destination = destination; self.length_multiplier = if settings.distance_length_adjust { - (destination - self.current_position).length().log10() + (destination - self.current_position).length().log10().max(0.0) } else { 1.0 } } - if self.length_multiplier < 0.25 { - println!("{}", self.length_multiplier); - } - // Check first if animation's over if (self.t - 1.0).abs() < std::f32::EPSILON { return false;