Skip to content

Commit d176001

Browse files
committed
Event: Update support comments for mouseenter/mouseleave implementation
Custom mouseenter/mouseleave implementation was needed because of: 1. Safari 6 not implementing mouseenter/mouseleave at all. 2. Chrome sending mouseenter too often. The second issue has been fixed in Chrome but exists now in Safari 7 (it's fixed in Safari 8) so we have to keep it for now, unfortunately. (cherry-picked from 2792845)
1 parent 5fce498 commit d176001

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/event.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -848,13 +848,10 @@ jQuery.Event.prototype = {
848848
// so that event delegation works in jQuery.
849849
// Do the same for pointerenter/pointerleave and pointerover/pointerout
850850
//
851-
// Support: Safari<7.0
852-
// Safari doesn't support mouseenter/mouseleave at all.
853-
//
854-
// Support: Chrome 34+
855-
// Mouseenter doesn't perform while left mouse button is pressed
856-
// (and initiated outside the observed element)
857-
// https://code.google.com/p/chromium/issues/detail?id=333868
851+
// Support: Safari 7 only
852+
// Safari sends mouseenter too often; see:
853+
// https://code.google.com/p/chromium/issues/detail?id=470258
854+
// for the description of the bug (it existed in older Chrome versions as well).
858855
jQuery.each({
859856
mouseenter: "mouseover",
860857
mouseleave: "mouseout",

0 commit comments

Comments
 (0)