summaryrefslogtreecommitdiff
path: root/src/glide.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/glide.zig')
-rw-r--r--src/glide.zig8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/glide.zig b/src/glide.zig
index 1d128dd0..1605b2d3 100644
--- a/src/glide.zig
+++ b/src/glide.zig
@@ -106,11 +106,6 @@ pub const Glide = struct {
return pardes.animation.Follow.pace(motion, @floatFromInt(glide.body_h), 5e-3);
}
- /// An input: the core's rows moved by `rows` (down positive).
- pub fn kick(glide: *Glide, rows: f32, now_ns: u64, motion: pardes.animation.Motion) void {
- glide.follow.kick(rows, now_ns, glide.pace(motion));
- }
-
pub fn advance(glide: *Glide, now_ns: u64, motion: pardes.animation.Motion) void {
glide.follow.advance(now_ns, glide.pace(motion));
}
@@ -191,7 +186,8 @@ pub const Glide = struct {
const dropped = if (far) other_n.* else @min(other_n.*, shift);
std.mem.copyForwards(pardes.Cell, other.*[0 .. @as(usize, other_n.* - dropped) * w], other.*[@as(usize, dropped) * w ..][0 .. @as(usize, other_n.* - dropped) * w]);
other_n.* -= dropped;
- glide.kick(@as(f32, @floatFromInt(shift)) * @as(f32, @floatFromInt(glide.dir)), glide.now_ns, glide.motion);
+ // An input: the core's rows moved by as many (down positive).
+ glide.follow.kick(@as(f32, @floatFromInt(shift)) * @as(f32, @floatFromInt(glide.dir)), glide.now_ns, glide.pace(glide.motion));
}
/// Finds the text whose view moved since the last loop step, however