diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2016-05-05 16:41:42 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2016-05-09 12:23:51 -0400 |
commit | f5958085cfb91f9a5e4251cd24b474bf9bb2dc1c (patch) | |
tree | 32042c4c16fc6f832104410589ba40095c985692 | |
parent | de71e9755fc0b5d45ee3fa1bac5481c2466dad6e (diff) | |
download | jquery-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.js | 3 |
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; |