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.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;

Loading…
Cancel
Save