IssueRaiser

Support Passive Event Listeners

https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md It would be good to have everything be passive by default and only opt-in to active when needed. E.g. you could listen to text input events but only preventDefault or used controlled behavior when you have active listeners. Similarly, we could unify this with React Native's threading model. E.g. one thing we could do there is synchronously block the UI thread when there are active listeners such as handling keystrokes. cc @vjeux @ide

Posted by sebmarkbage on Apr 7, 2016, 6:42 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

ux (Software)

Support Passive Event Listeners

sebmarkbageApr 7, 2016, 6:42 PM

https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md It would be good to have everything be passive by default and only opt-in to active when needed. E.g. you could listen to text input events but only preventDefault or used controlled behavior when you have active listeners. Similarly, we could unify this with React Native's threading model. E.g. one thing we could do there is synchronously block the UI thread when there are active listeners such as handling keystrokes. cc @vjeux @ide

Comments (0)

No comments yet. Start the discussion.

Comment on this issue