aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorlouisremi <lrbabe@gmail.com>2014-01-30 16:07:06 +0100
committerDave Methvin <dave.methvin@gmail.com>2014-03-16 10:49:57 -0400
commite06f428f6ed99e0fafb2e21c456eafc570e3e5ba (patch)
treedfad5208297aa46df7b3e885ad063b8eea2030ef /src/event.js
parent44247b1cf2f4e76e8153f8cbac69dcfd5b2eacd4 (diff)
downloadjquery-e06f428f6ed99e0fafb2e21c456eafc570e3e5ba.tar.gz
jquery-e06f428f6ed99e0fafb2e21c456eafc570e3e5ba.zip
Event: Treat Pointer events like mouse events, #14741
Ref #14741 Ref gh-1503
Diffstat (limited to 'src/event.js')
-rw-r--r--src/event.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index 35c1c66b7..b08fde6a7 100644
--- a/src/event.js
+++ b/src/event.js
@@ -14,7 +14,7 @@ define([
var
rkeyEvent = /^key/,
- rmouseEvent = /^(?:mouse|contextmenu)|click/,
+ rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
@@ -699,7 +699,9 @@ jQuery.Event.prototype = {
// Support: Chrome 15+
jQuery.each({
mouseenter: "mouseover",
- mouseleave: "mouseout"
+ mouseleave: "mouseout",
+ pointerenter: "pointerover",
+ pointerleave: "pointerout"
}, function( orig, fix ) {
jQuery.event.special[ orig ] = {
delegateType: fix,