Permalink
Browse files

Event: Add touch event properties, eliminates need for a plugin

Fixes gh-3104
Closes gh-3108

See https://github.com/aarongloege/jquery.touchHooks

Other properties are already present thanks to mouse events.

squash! Add targetTouches
  • Loading branch information...
1 parent de71e97 commit f5958085cfb91f9a5e4251cd24b474bf9bb2dc1c @dmethvin dmethvin committed May 5, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/event.js
View
@@ -595,6 +595,7 @@ jQuery.each( {
altKey: true,
bubbles: true,
cancelable: true,
+ changedTouches: true,
ctrlKey: true,
detail: true,
eventPhase: true,
@@ -615,7 +616,9 @@ jQuery.each( {
offsetY: true,
screenX: true,
screenY: true,
+ targetTouches: true,
toElement: true,
+ touches: true,
which: function( event ) {
var button = event.button;

0 comments on commit f595808

Please sign in to comment.