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

Fundamental flaw of original approach #1

Open
johnd0e opened this issue Dec 7, 2019 · 0 comments
Open

Fundamental flaw of original approach #1

johnd0e opened this issue Dec 7, 2019 · 0 comments

Comments

@johnd0e
Copy link
Collaborator

johnd0e commented Dec 7, 2019

It turned out, that original plugin code has major limitations

  1. Does not take into account that element may have several 'click' handlers
  2. When simulating 'click' events for delegated events:
    • does not take into account events' selectors;
    • does not set proper this value (so as event.currentTarget).
  3. Processes either Mouse or Touch events.
    • defined on startup, and doesn't consider possibility of attaching/detaching devices in runtime;
    • does not take into account possibility of using mouse on touch-enabled devices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant