branch: elpa/dslide commit b95576d46019739cfef7be7d362047d78485f3ee Author: Psionik K <73710933+psioni...@users.noreply.github.com> Commit: Psionik K <73710933+psioni...@users.noreply.github.com>
Remove flickering caused by animation float / int behavior mismatch The initialization for this needs to always use a float because the behavior for floats and integers is different for this property. Normalizing to a float ensures we always get the correct behavior during initial frame and interpolated frames. Signed-off-by: Psionik K <73710933+psioni...@users.noreply.github.com> --- dslide.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dslide.el b/dslide.el index f6516cf341..165d8aaf0d 100644 --- a/dslide.el +++ b/dslide.el @@ -2353,7 +2353,7 @@ and the value of `point-max' should contain a newline somewhere." (text-properties-at (car newline-region)) 'line-height) 1.0))) - (overlay-put overlay 'line-height dslide-slide-in-blank-lines) + (overlay-put overlay 'line-height (float dslide-slide-in-blank-lines)) (overlay-put overlay 'priority 10) (push timer dslide--animation-timers) (push overlay dslide--animation-overlays)