Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recently chrome changed the behavior of wheel listeners to be passive by default. Passive listeners cannot cancel event propagation. When a wheel event propagates outside of the canvas it can drastically slow down the browser as the parent elements try to compute whether or not they can scroll. This change uses manual event listener management to add active listeners, which is inline w/ the behavior for chrome before version 73. Test plan: use mousewheel. Notice there are no console.warn messages about passive listeners anymore. Semver impact: this is semver patch. Bugfix only. Further reading: facebook/react#14856 facebook/react#6436
- Loading branch information