aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2016-05-05 16:41:42 -0400
committerDave Methvin <dave.methvin@gmail.com>2016-05-09 12:23:51 -0400
commitf5958085cfb91f9a5e4251cd24b474bf9bb2dc1c (patch)
tree32042c4c16fc6f832104410589ba40095c985692
parentde71e9755fc0b5d45ee3fa1bac5481c2466dad6e (diff)
downloadjquery-f5958085cfb91f9a5e4251cd24b474bf9bb2dc1c.tar.gz
jquery-f5958085cfb91f9a5e4251cd24b474bf9bb2dc1c.zip
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
-rw-r--r--src/event.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event.js b/src/event.js
index 1c29a6b09..b55f8a35f 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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;