mirror of https://github.com/luileito/jsketch.git
Can't override readonly props
This commit is contained in:
parent
c2af62845a
commit
68b018c979
|
|
@ -614,16 +614,11 @@
|
|||
var touches = e.originalEvent.changedTouches;
|
||||
for (var i = 0; i < touches.length; i++) {
|
||||
var touch = touches[i];
|
||||
// Add event type and finger ID.
|
||||
touch.type = e.type;
|
||||
touch.identifier = i;
|
||||
callback(touch);
|
||||
}
|
||||
} else {
|
||||
// Track only the current finger.
|
||||
var touch = e.originalEvent.touches[0];
|
||||
touch.type = e.type;
|
||||
touch.identifier = 0;
|
||||
callback(touch);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -614,16 +614,11 @@
|
|||
var touches = e.changedTouches;
|
||||
for (var i = 0; i < touches.length; i++) {
|
||||
var touch = touches[i];
|
||||
// Add event type and finger ID.
|
||||
touch.type = e.type;
|
||||
touch.identifier = i;
|
||||
callback(touch);
|
||||
}
|
||||
} else {
|
||||
// Track only the current finger.
|
||||
var touch = e.touches[0];
|
||||
touch.type = e.type;
|
||||
touch.identifier = 0;
|
||||
callback(touch);
|
||||
}
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in New Issue