diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-05 03:01:37 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-05 03:01:37 +0000 |
commit | 7731c3718462625785ef5c34fd2a38d6ea4f60a7 (patch) | |
tree | b091cd4fd3920872342fec00159a08d6af6d9034 /macros/latex/contrib/animate/animate.sty | |
parent | 1e7bf0547010a2b8bbda5fb22cf3bc6bcf8f11a2 (diff) |
CTAN sync 202008050301
Diffstat (limited to 'macros/latex/contrib/animate/animate.sty')
-rw-r--r-- | macros/latex/contrib/animate/animate.sty | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/macros/latex/contrib/animate/animate.sty b/macros/latex/contrib/animate/animate.sty index 64d1291144..ae65243dba 100644 --- a/macros/latex/contrib/animate/animate.sty +++ b/macros/latex/contrib/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% |