]> source.dussan.org Git - jquery.git/commitdiff
Event: Update support comments for mouseenter/mouseleave implementation
authorMichał Gołębiowski <m.goleb@gmail.com>
Mon, 27 Jul 2015 20:29:38 +0000 (22:29 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 27 Jul 2015 20:29:38 +0000 (22:29 +0200)
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.

src/event.js

index 53cfcd5ee02bc162c1c8d6208c71ae4015b1b5a5..f0604503c2194cb1fddde6d665f413e02b5298b7 100644 (file)
@@ -772,13 +772,10 @@ jQuery.Event.prototype = {
 // so that event delegation works in jQuery.
 // Do the same for pointerenter/pointerleave and pointerover/pointerout
 //
-// Support: Safari<7.0
-// Safari doesn't support mouseenter/mouseleave at all.
-//
-// Support: Chrome 34+
-// Mouseenter doesn't perform while left mouse button is pressed
-// (and initiated outside the observed element)
-// https://code.google.com/p/chromium/issues/detail?id=333868
+// Support: Safari 7 only
+// Safari sends mouseenter too often; see:
+// https://code.google.com/p/chromium/issues/detail?id=470258
+// for the description of the bug (it existed in older Chrome versions as well).
 jQuery.each({
        mouseenter: "mouseover",
        mouseleave: "mouseout",