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

Reduce scroll performance impact of wheel listeners #109

Open
RByers opened this issue Sep 26, 2016 · 0 comments
Open

Reduce scroll performance impact of wheel listeners #109

RByers opened this issue Sep 26, 2016 · 0 comments

Comments

@RByers
Copy link

RByers commented Sep 26, 2016

wheel events are a big problem for scroll performance. Eg. using timestamps to monitor latency @n8schloss has found that wheel listeners are a real problem for scroll performance in Facebook. There are a number of incubation-style efforts underway to try to improve this, which if successful should probably make it back into the UI Events specification somehow.

In particular:

  • When all wheel listeners are passive, wheel events should be uncancelable (already shipping in Chrome and I believe Safari and Firefox). Eg. perhaps UI Events should have a "cancelability" section like Touch Events does
  • Define touchpad "latching" and use that to make wheel events uncancelable during a scroll
  • Let developers opt-out of scrolling bubbling up past some elements (eg. fixed position), eliminating the need for some non-passive wheel listeners
  • Define a declarative wheel-action API to make it easier to move to a passive-by-default model as we're working towards for touch.

/cc @tdresser @dtapuska @igrigorik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants