emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dslide ded3c2cbb2 166/230: important animation math fix


From: ELPA Syncer
Subject: [nongnu] elpa/dslide ded3c2cbb2 166/230: important animation math fix
Date: Sun, 7 Jul 2024 19:00:32 -0400 (EDT)

branch: elpa/dslide
commit ded3c2cbb2f4a5de59443bd8f0885d76cf660a66
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>

    important animation math fix
    
    The animation was reducing line height to zero.  Now it reduces it to the
    initial line height.  Result is much more byewtiphul
    
    Signed-off-by: Psionik K <73710933+psionic-k@users.noreply.github.com>
---
 dslide.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dslide.el b/dslide.el
index 403493cf55..ad9d3122c0 100644
--- a/dslide.el
+++ b/dslide.el
@@ -2298,8 +2298,7 @@ and the value of `point-max' should contain a newline 
somewhere."
     (let* ((diff (time-to-seconds (time-subtract goal-time (current-time))))
            (fraction (expt (/ diff dslide-animation-duration) 5.0))
            (lines dslide-slide-in-blank-lines)
-           (line-height (* (+ initial-line-height lines)
-                           fraction)))
+           (line-height (+ initial-line-height (* lines fraction))))
       (overlay-put overlay 'line-height line-height))))
 
 (defun dslide--animation-cleanup ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]