diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-07-27 22:29:38 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-07-27 22:29:38 +0200 |
commit | 2792845534e36c39dbb9c8369ed96aaefa560081 (patch) | |
tree | 3d83dfb0b44da1286dfcdc25e3f71379f6dbddbf /src | |
parent | 93bee4701d14202045a88aab156da0daf9418430 (diff) | |
download | jquery-2792845534e36c39dbb9c8369ed96aaefa560081.tar.gz jquery-2792845534e36c39dbb9c8369ed96aaefa560081.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/event.js b/src/event.js index 53cfcd5ee..f0604503c 100644 --- a/src/event.js +++ b/src/event.js @@ -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", |