diff options
Diffstat (limited to 'src/animation.zig')
| -rw-r--r-- | src/animation.zig | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/animation.zig b/src/animation.zig index 1738ba7d..ae116e27 100644 --- a/src/animation.zig +++ b/src/animation.zig @@ -211,9 +211,9 @@ pub const Track = extern struct { pub fn visualBox(track: Track) Box { return switch (track.effect) { .slide, .zoom, .vertical => track.presented(), - .off, .dissolve => track.to, - // Every character effect stays inside the pane's final rectangle. - .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => track.to, + // A fade, a dissolve and every character effect stay inside the + // pane's final rectangle. + .off, .dissolve, .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => track.to, }; } @@ -244,10 +244,9 @@ pub fn openingBox(effect: Transition, target: Box, screen_width: u16) Box { from.y += target.h; break :blk from; }, - .off, .dissolve => target, - // Character effects own the glyphs inside a fixed rectangle, so their - // panel opens at exactly its final geometry. - .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => target, + // A dissolve and the character effects own the glyphs inside a fixed + // rectangle, so their panel opens at exactly its final geometry. + .off, .dissolve, .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => target, }; } |
