fix cursor disappearing glitch

macos-click-through
Keith Simmons 3 years ago
parent 59fa3ed2a9
commit 1f699afad1

@ -94,16 +94,12 @@ impl Corner {
self.start_position = self.current_position; self.start_position = self.current_position;
self.previous_destination = destination; self.previous_destination = destination;
self.length_multiplier = if settings.distance_length_adjust { self.length_multiplier = if settings.distance_length_adjust {
(destination - self.current_position).length().log10() (destination - self.current_position).length().log10().max(0.0)
} else { } else {
1.0 1.0
} }
} }
if self.length_multiplier < 0.25 {
println!("{}", self.length_multiplier);
}
// Check first if animation's over // Check first if animation's over
if (self.t - 1.0).abs() < std::f32::EPSILON { if (self.t - 1.0).abs() < std::f32::EPSILON {
return false; return false;

Loading…
Cancel
Save