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

Use native passive event listeners for ripple and tooltip #870

Closed
wants to merge 2 commits into from
Closed

Use native passive event listeners for ripple and tooltip #870

wants to merge 2 commits into from

Conversation

Subtletree
Copy link
Collaborator

@Subtletree Subtletree commented Dec 17, 2017

To do:

  • Replace remaining jquery on / off with addEventListener / removeEventListener.
  • Use passive: true where possible. (Anywhere where the handler does not call preventDefault)
  • Ripple mixin needs unbindEvents
    Unnecessary as listeners are removed when element is destroyed in browsers newer than ie 7

These two uses of passive: true remove 200 scroll-blocking violations in the test suite.

Related: #843

@panthony
Copy link
Contributor

@Subtletree Hi, how's this PR going? Maybe we could split it so that we can at least merge the passive: true ?

@Subtletree Subtletree changed the title [WIP] Use native event listeners Use native passive event listeners for ripple and tooltip Jan 17, 2018
@Subtletree
Copy link
Collaborator Author

Think that's a good call to split it, I haven't looked at this since I posted it.

I've renamed this PR and will open an issue about removing the remaining jquery handlers.

@miguelcobain Your thoughts on merging this?

@Subtletree Subtletree deleted the Use-native-event-listeners branch July 24, 2018 21:34
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.

3 participants