Skip to content

Commit f3e3a20

Browse files
committed
Event: Add a note about a mouseenter bug in Chrome
Also, add a support comment about older Safari. Refs https://code.google.com/p/chromium/issues/detail?id=333868 Partially cherry-picked from a5e1c9b
1 parent 8b0618c commit f3e3a20

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/event.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,14 @@ jQuery.Event.prototype = {
782782
};
783783

784784
// Create mouseenter/leave events using mouseover/out and event-time checks
785+
// so that event delegation works in jQuery.
786+
// Do the same for pointerenter/pointerleave and pointerover/pointerout
787+
// Support: Safari<7.0
788+
// Safari doesn't support mouseenter/mouseleave at all.
789+
// Support: Chrome 40+
790+
// Mouseenter doesn't perform while left mouse button is pressed
791+
// (and initiated outside the observed element)
792+
// https://code.google.com/p/chromium/issues/detail?id=333868
785793
jQuery.each({
786794
mouseenter: "mouseover",
787795
mouseleave: "mouseout",

0 commit comments

Comments
 (0)