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

passive event handlers #2080

Closed
wants to merge 1 commit into from
Closed

Conversation

coot
Copy link

@coot coot commented Jun 22, 2016

utils.registerEventHandler: accept options parameter which is passed to
addEventListener. This allows to register passive event handlers.

event binding: add ${eventName}Passive binding to decide if
${eventName} handler should be passive. This works in the same way as
${eventName}Bubble binding.

utils.canUsePassiveEventHandlers: set to true only if addEventListener
accepts third argument of type {passive: true} and it does not allow
to use Event.preventDefault method.

utils.registerEventHandler: accept options parameter which is passed to
addEventListener.  This allows to register passive event handlers.

event binding: add `${eventName}Passive` binding to decide if
`${eventName}` handler should be passive.  This works in the same way as
`${eventName}Bubble` binding.

utils.canUsePassiveEventHandlers: set to true only if `addEventListener`
accepts third argument of type `{passive: true}` and it does not allow
to use `Event.preventDefault` method.
@coot coot closed this Jan 19, 2020
@coot coot deleted the passive-event-handlers branch January 19, 2020 16:11
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

Successfully merging this pull request may close these issues.

None yet

1 participant