summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/animate
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-08-04 21:27:56 +0000
committerKarl Berry <karl@freefriends.org>2020-08-04 21:27:56 +0000
commitffc452da990fb4a368ce248e03876eb792a6663a (patch)
tree490cc975473c40cb0c6236a59dda4397331002c1 /Master/texmf-dist/tex/latex/animate
parent40b7a17d9a7fae639bf4f42c43a3b3e9541ddef6 (diff)
animate (4aug20)
git-svn-id: svn://tug.org/texlive/trunk@56044 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/animate')
-rw-r--r--Master/texmf-dist/tex/latex/animate/animate.sty33
1 files changed, 8 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty
index 64d12911441..ae65243dba2 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/05/29}
+\def\@anim@version{2020/08/04}
\ProvidesPackage{animate}
[\@anim@version\space PDF & SVG animations from files and inline graphics]
@@ -235,22 +235,6 @@
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\ifpdf\else
- \if@anim@dvipdfmx\else
- \if@anim@dvisvgm\else % dvips
- %if geometry package is loaded, execute `\geometry{dvips}' right before
- % `\begin{document}'; not sure whether still needed at all
- \let\@anim@document\document
- \def\document{%
- \endgroup%
- \@ifpackageloaded{geometry}{\geometry{dvips}}{}%
- \begingroup%
- \@anim@document%
- }
- \fi
- \fi
-\fi
-
%\pdfmdfivesum is used for hashing object references of embedded files based
%on their MD5 digest (in order to avoid multiple inclusion); if it is not
%available, hashing will be based on the file name
@@ -2013,7 +1997,10 @@
% insert widget
\if@anim@js%
\@anim@annot{\@anim@btnsize}{\@anim@btnsize}{\z@}{%
- cursor='pointer' onmousedown='\@anim@btnJS{#1}{\@anim@arg}'%
+ cursor='pointer' onmousedown='%
+ event.preventDefault();event.stopPropagation();%
+ \@anim@btnJS{#1}{\@anim@arg}%
+ '%
}%
\@anim@updatebbox{\@anim@btnsize}{\@anim@btnsize}{0pt}%
\hbox to \@anim@btnsize {%
@@ -2056,7 +2043,6 @@
/T (#1.#2)%
\@anim@tooltip%
\if@anim@js%
- %/A <</S/JavaScript/JS (\@anim@btnJS{#1}{\@anim@arg})>>%
/AA <</D <</S/JavaScript/JS (\@anim@btnJS{#1}{\@anim@arg})>>>>%
\fi%
}%
@@ -4355,8 +4341,7 @@
\@anim@wdgtUpJS{#1}%
}$%
function onTouchEndWdgt(event){$%
- event.preventDefault();$%
- event.stopPropagation();$%
+ event.preventDefault();event.stopPropagation();$%
\if@anim@step\else
if(a#1_playing){try{a#1_pause();}catch(e){}}else{$%
\fi%
@@ -4366,13 +4351,11 @@
\fi%
}$%
function onMouseDownWdgt(event){$%
- event.preventDefault();$%
- event.stopPropagation();$%
+ event.preventDefault();event.stopPropagation();$%
\@anim@wdgtDownJS{#1}%
}$%
function onMouseUpWdgt(event){$%
- event.preventDefault();$%
- event.stopPropagation();$%
+ event.preventDefault();event.stopPropagation();$%
onWidgetUpAction(event);$%
}$%
\fi%