mirror of
https://github.com/jquery/jquery.git
synced 2026-01-31 14:48:02 -05:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user