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

Make event listeners passive #683

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

lgeiger
Copy link
Contributor

@lgeiger lgeiger commented Feb 15, 2019

Marking event listeners as passive, indicates that the callback will never call event.preventDefault(). This can improve scolling performance in many cases.

For more information on passive event listeners see: https://developers.google.com/web/updates/2016/06/passive-event-listeners

Marking event listeners as passive, indicates that the callback will never call `event.preventDefault()`. This can improve scolling performance in many cases.

For more information on passive event listeners see: https://developers.google.com/web/updates/2016/06/passive-event-listeners
lgeiger added a commit to lgeiger/atom-utils that referenced this pull request Feb 15, 2019
This allows users to pass options to [`addEventListener`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters). This is especially usefull when using passive event listeners which can greatly improve scrolling performance. See atom-minimap/minimap#683
lgeiger added a commit to lgeiger/atom-utils that referenced this pull request Feb 15, 2019
This allows users to pass options to [`addEventListener`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters). This is especially usefull when using passive event listeners which can greatly improve scrolling performance. See atom-minimap/minimap#683
@aviatesk
Copy link

@abe33 @mehcode could you merge this ?
I've used this patch for a long while and works really well.

@aminya
Copy link
Collaborator

aminya commented Jul 10, 2020

@lgeiger

🎉 This PR is included in version 4.30.0 of minimap-plus 🎉

The release is available on:

Your semantic-release bot 📦🚀

@aminya aminya merged commit c2c77e5 into atom-minimap:master Nov 21, 2020
@lgeiger lgeiger deleted the passive-event-handlers branch November 21, 2020 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants