Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the way to handle actions #14587

Open
calixteman opened this issue Feb 20, 2022 · 0 comments
Open

Improve the way to handle actions #14587

calixteman opened this issue Feb 20, 2022 · 0 comments

Comments

@calixteman
Copy link
Contributor

The pdf in https://bugzilla.mozilla.org/show_bug.cgi?id=1737260 has some buttons where the click action is an array of Hide actions.
So in order to fix that stuff we must make several changes:

1. collect the actions and put them in an array:

2. These actions can be triggered on different kind of events:

  • for example for a button it's possible to have Mouse Up, Mouse Down, Mouse Enter, Mouse Exit, On Focus and On Blur events (it's at least what is currently available in Acrobat).
  • these events are available for text fields too and probably the others.
  • we must respect the array order which means that JS actions must be triggered one by one and with the correct order.

So instead of binding an action on onclick for example we should bind an action which will run the different handlers for the different possible actions (ResetForm, Hide, GoTo, URI, ...).

3. Implement missing actions like Hide.

@calixteman calixteman self-assigned this Feb 20, 2022
@marco-c marco-c added this to To triage in PDF.js quality via automation Mar 4, 2022
@marco-c marco-c moved this from To triage to High priority in PDF.js quality Mar 4, 2022
@marco-c marco-c moved this from High priority to Low priority in PDF.js quality Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
PDF.js quality
Low priority
Development

No branches or pull requests

1 participant