summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate/animate.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-10-07 20:53:08 +0000
committerKarl Berry <karl@freefriends.org>2020-10-07 20:53:08 +0000
commitfb163bd8a33be83ffc24acb554c31fc4b7170e39 (patch)
treea21217f241f55bdcdb0f92a0a95a35d462984468 /Master/texmf-dist/tex/latex/animate/animate.sty
parentd9b1ec3c205a61c913ac359ae066e75b37329f48 (diff)
animate (6oct20)
git-svn-id: svn://tug.org/texlive/trunk@56583 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate/animate.sty')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty22
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index d5003db446b..caa4574eecb 100644
--- a/Master/texmf-dist/tex/latex/animate/animate.sty
+++ b/Master/texmf-dist/tex/latex/animate/animate.sty
@@ -13,7 +13,7 @@
\NeedsTeXFormat{LaTeX2e}
-\def\@anim@version{2020/10/05}
+\def\@anim@version{2020/10/07}
\ProvidesPackage{animate}
[\@anim@version\space PDF & SVG animations from files and inline graphics]
@@ -3899,7 +3899,6 @@
\fi%
\fi%
\fi
- return;$%
}$%
};$%
a#1_gotoPrev=function(){$%
@@ -3930,7 +3929,6 @@
\fi%
\fi%
\fi
- return;$%
}$%
};$%
\if@anim@step\else
@@ -4240,21 +4238,25 @@
\if@anim@palindrome
if(a#1_idx==0)a#1_playsRight=true;$%
if(a#1_idx==\@anim@maxframe)a#1_playsRight=false;$%
+ if(a#1_playsRight){a#1_playRight();}else{a#1_playLeft();}%
\else
+ var a#1_doplay=true;$%
if(a#1_idx==\@anim@maxframe&&a#1_playsRight){%
a#1_stopFirst();%
- \if@anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi%
+ \if@anim@pauseframes
+ if(a#1_pauseAt[a#1_idx]){a#1_pause();a#1_doplay=false;}%
+ \fi%
}$%
if(a#1_idx==0&&!a#1_playsRight){%
a#1_stopLast();%
- \if@anim@pauseframes if(a#1_pauseAt[a#1_idx]){a#1_pause();return;}\fi%
+ \if@anim@pauseframes
+ if(a#1_pauseAt[a#1_idx]){a#1_pause();a#1_doplay=false;}%
+ \fi%
+ }$%
+ if(a#1_doplay){%
+ if(a#1_playsRight){a#1_playRight();}else{a#1_playLeft();}%
}$%
\fi
- if(a#1_playsRight){%
- a#1_playRight();%
- }else{%
- a#1_playLeft();%
- }$%
\fi%
}catch(e){}$%
}%