Event: Treat Pointer events like mouse events, #14741

Ref #14741
Ref gh-1503
This commit is contained in:
louisremi 2014-01-30 16:07:06 +01:00 committed by Dave Methvin
parent 44247b1cf2
commit e06f428f6e

View File

@ -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,