Skip to content

Deprecate mouseEnter/Leave/Move Ember events - #486

Merged
pzuraq merged 7 commits into
emberjs:masterfrom
simonihmig:deprecate-mouseenter
Jul 19, 2019
Merged

pzuraq merged 7 commits into
emberjs:masterfrom
simonihmig:deprecate-mouseenter

Conversation

@simonihmig

@simonihmig simonihmig commented Apr 27, 2019 •

Copy link
Copy Markdown
Contributor

@simonihmig
simonihmig force-pushed the deprecate-mouseenter branch from b1f575c to 321566e Compare April 27, 2019 23:49
@simonihmig
simonihmig force-pushed the deprecate-mouseenter branch from 321566e to 37ae192 Compare April 27, 2019 23:52
@simonihmig simonihmig changed the title Deprecate mouseEnter/Leave events in EventDispatcher Deprecate mouseEnter/Leave Ember events Apr 27, 2019
locks
locks previously requested changes Apr 29, 2019

@locks locks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes :)

Comment thread text/0486-deprecate-mouseenter.md Resolved
Comment thread text/0486-deprecate-mouseenter.md Resolved
@rwjblue

rwjblue commented Apr 29, 2019

Copy link
Copy Markdown
Member

Thoughts on also adding mousemove to the list to be deprecated? I realize it doesn't have all of the same issues (since it bubbles), but it definitely has the same negative performance impact.

@rwjblue rwjblue self-assigned this Apr 29, 2019
@rwjblue

rwjblue commented Apr 29, 2019

Copy link
Copy Markdown
Member

Thanks for putting this together @simonihmig!

@simonihmig

simonihmig commented Apr 29, 2019 •

Copy link
Copy Markdown
Contributor Author

Thoughts on also adding mousemove to the list to be deprecated?

Yes, I mentioned this under "Alternatives", and personally would be inclined to also include this!

Here's a profiler view when just moving the mouse over an Ember app:

image

The first two scripting executions (mouseout + mouseover) are for mouseenter/leave support, the third is just the normal event listener for mousemove. All these take just a fraction of a millisecond, though at large scale it looks like this: 😕

image

Comment thread text/0486-deprecate-mouseenter.md Resolved
Co-Authored-By: Jessica Jordan <[email protected]>
@rwjblue
rwjblue dismissed locks’s stale review May 31, 2019 17:44

addressed

@rwjblue

rwjblue commented Jun 3, 2019 •

Copy link
Copy Markdown
Member

@simonihmig - Would you mind updating to include mouseover and mousemove? I'm adding this to an upcoming core team meeting to see about advancing...

@simonihmig

Copy link
Copy Markdown
Contributor Author

Would you mind updating to include mouseover and mousemove?

@rwjblue updated this to include mousemove!

But mouseover is not supported anyway here. It was used for the mouseEnter implementation internally, but does not get dispatched itself, AFAICT.

@simonihmig simonihmig changed the title Deprecate mouseEnter/Leave Ember events Deprecate mouseEnter/Leave/Move Ember events Jun 5, 2019
@rwjblue

rwjblue commented Jun 5, 2019

Copy link
Copy Markdown
Member

Ah, sorry for the confusion thank you @simonihmig!

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed this a bit during a recent weekly call, and would love to see some tweaks to the examples.

Comment thread text/0486-deprecate-mouseenter.md Resolved
Comment thread text/0486-deprecate-mouseenter.md Resolved
Comment thread text/0486-deprecate-mouseenter.md Resolved
Co-Authored-By: Clemens M�ller <[email protected]>
Comment thread text/0486-deprecate-mouseenter.md Resolved
Comment thread text/0486-deprecate-mouseenter.md Resolved
@rwjblue

rwjblue commented Jul 12, 2019

Copy link
Copy Markdown
Member

Discussed this at today's team meeting, and are 👍 on moving this into final comment period.

Comment thread text/0486-deprecate-mouseenter.md Resolved
@simonihmig

Copy link
Copy Markdown
Contributor Author

Updated this to

  • show deprecations at creation time rather than when dispatching
  • refer to separate deprecation guides for Ember.Component vs. {{action}}
  • include Component API docs for references to events that need to be removed

@pzuraq

pzuraq commented Jul 19, 2019

Copy link
Copy Markdown
Contributor

At today's core team meeting, we have decided to move forward with this RFC. 👍

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.

7 participants