Skip to content

Commit 2792845

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.
1 parent 93bee47 commit 2792845

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
@@ -772,13 +772,10 @@ jQuery.Event.prototype = {
772772
// so that event delegation works in jQuery.
773773
// Do the same for pointerenter/pointerleave and pointerover/pointerout
774774
//
775-
// Support: Safari<7.0
776-
// Safari doesn't support mouseenter/mouseleave at all.
777-
//
778-
// Support: Chrome 34+
779-
// Mouseenter doesn't perform while left mouse button is pressed
780-
// (and initiated outside the observed element)
781-
// https://code.google.com/p/chromium/issues/detail?id=333868
775+
// Support: Safari 7 only
776+
// Safari sends mouseenter too often; see:
777+
// https://code.google.com/p/chromium/issues/detail?id=470258
778+
// for the description of the bug (it existed in older Chrome versions as well).
782779
jQuery.each({
783780
mouseenter: "mouseover",
784781
mouseleave: "mouseout",

0 commit comments

Comments
 (0)