Skip to content

Commit f595808

Browse files
committed
Event: Add touch event properties, eliminates need for a plugin
Fixes jquerygh-3104 Closes jquerygh-3108 See https://github.com/aarongloege/jquery.touchHooks Other properties are already present thanks to mouse events. squash! Add targetTouches
1 parent de71e97 commit f595808

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/event.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ jQuery.each( {
595595
altKey: true,
596596
bubbles: true,
597597
cancelable: true,
598+
changedTouches: true,
598599
ctrlKey: true,
599600
detail: true,
600601
eventPhase: true,
@@ -615,7 +616,9 @@ jQuery.each( {
615616
offsetY: true,
616617
screenX: true,
617618
screenY: true,
619+
targetTouches: true,
618620
toElement: true,
621+
touches: true,
619622

620623
which: function( event ) {
621624
var button = event.button;

0 commit comments

Comments
 (0)