Skip to content
Permalink
Browse files

Event: Treat Pointer events like mouse events, #14741

Ref #14741
Ref gh-1503
  • Loading branch information...
louisremi authored and dmethvin committed Jan 30, 2014
1 parent 44247b1 commit e06f428f6ed99e0fafb2e21c456eafc570e3e5ba
Showing with 4 additions and 2 deletions.
  1. +4 −2 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,

0 comments on commit e06f428

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.