diff options
author | louisremi <lrbabe@gmail.com> | 2014-01-30 16:07:06 +0100 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-16 11:01:09 -0400 |
commit | 64d7c168c8b331cd53a3f8712e09d8c75b0e0efe (patch) | |
tree | 7615c25a0e1582931413961bccdfb0667cac7a44 /src/event.js | |
parent | f25a5b43d99f6ccf5365a6a817ed068f60a76ae5 (diff) | |
download | jquery-64d7c168c8b331cd53a3f8712e09d8c75b0e0efe.tar.gz jquery-64d7c168c8b331cd53a3f8712e09d8c75b0e0efe.zip |
Event: Treat Pointer events like mouse events, #14741
Ref #14741
Ref gh-1503
(cherry picked from commit e06f428f6ed99e0fafb2e21c456eafc570e3e5ba)
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js index a15cf6d45..f6e26d8b5 100644 --- a/src/event.js +++ b/src/event.js @@ -13,7 +13,7 @@ define([ var rformElems = /^(?:input|select|textarea)$/i, rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|contextmenu)|click/, + rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; @@ -766,7 +766,9 @@ jQuery.Event.prototype = { // Create mouseenter/leave events using mouseover/out and event-time checks jQuery.each({ mouseenter: "mouseover", - mouseleave: "mouseout" + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, |