Skip to content

Commit

Permalink
Fix up event names in “Element: mouseenter event” doc (again) (#33754)
Browse files Browse the repository at this point in the history
Revert #7289
  • Loading branch information
fmeyertoens committed May 26, 2024
1 parent 630c591 commit 433a77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/element/mouseenter_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ One `mouseenter` event is sent to each element of the hierarchy when entering th
![Mouseover behavior diagram](mouseover.png)
A single `mouseover` event is sent to the deepest element of the DOM tree, then it bubbles up the hierarchy until it is canceled by a handler or reaches the root.

With deep hierarchies, the number of `mouseover` events sent can be quite huge and cause significant performance problems. In such cases, it is better to listen for `mouseenter` events.
With deep hierarchies, the number of `mouseenter` events sent can be quite huge and cause significant performance problems. In such cases, it is better to listen for `mouseover` events.

Combined with the corresponding `mouseleave` (which is fired at the element when the mouse exits its content area), the `mouseenter` event acts in a very similar way to the CSS {{cssxref(':hover')}} pseudo-class.

Expand Down

0 comments on commit 433a77a

Please sign in to comment.