From f5958085cfb91f9a5e4251cd24b474bf9bb2dc1c Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Thu, 5 May 2016 16:41:42 -0400 Subject: [PATCH] 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 --- src/event.js | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5