summaryrefslogtreecommitdiff
path: root/anim/src/syscalls.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/src/syscalls.zig')
-rw-r--r--anim/src/syscalls.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/anim/src/syscalls.zig b/anim/src/syscalls.zig
index 3788fe3..c00aec5 100644
--- a/anim/src/syscalls.zig
+++ b/anim/src/syscalls.zig
@@ -281,7 +281,10 @@ pub const Crossing = struct {
const count = if (newest) |n| n + 1 - first else 0;
const above = [2]usize{ (count -| 1) -| room, count -| room };
const notes = [2][]const u8{ logNote(u, above[0]), logNote(u, above[1]) };
- const scroll = cursors.glide(arrives);
+ // From rest it moves at once, a pixel a frame at least: a glide's first
+ // frames are each under a pixel, and the rows, drawn on whole pixels,
+ // would step one and stand still a frame.
+ const scroll = @min(@max(cursors.glide(arrives), arrives * theme.time.move * 60 / (row_h * @max(u.at.scale, 0.01))), 1);
const renote = above[0] != above[1] and arrives < 1;
const body = u.panel(box.w, box.h, "system calls", .{ .focus = c.focus, .note = if (renote) "" else notes[1] });
if (renote) {