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;
|
var touches = e.originalEvent.changedTouches;
|
||||||
for (var i = 0; i < touches.length; i++) {
|
for (var i = 0; i < touches.length; i++) {
|
||||||
var touch = touches[i];
|
var touch = touches[i];
|
||||||
// Add event type and finger ID.
|
|
||||||
touch.type = e.type;
|
|
||||||
touch.identifier = i;
|
|
||||||
callback(touch);
|
callback(touch);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Track only the current finger.
|
// Track only the current finger.
|
||||||
var touch = e.originalEvent.touches[0];
|
var touch = e.originalEvent.touches[0];
|
||||||
touch.type = e.type;
|
|
||||||
touch.identifier = 0;
|
|
||||||
callback(touch);
|
callback(touch);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -614,16 +614,11 @@
|
||||||
var touches = e.changedTouches;
|
var touches = e.changedTouches;
|
||||||
for (var i = 0; i < touches.length; i++) {
|
for (var i = 0; i < touches.length; i++) {
|
||||||
var touch = touches[i];
|
var touch = touches[i];
|
||||||
// Add event type and finger ID.
|
|
||||||
touch.type = e.type;
|
|
||||||
touch.identifier = i;
|
|
||||||
callback(touch);
|
callback(touch);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Track only the current finger.
|
// Track only the current finger.
|
||||||
var touch = e.touches[0];
|
var touch = e.touches[0];
|
||||||
touch.type = e.type;
|
|
||||||
touch.identifier = 0;
|
|
||||||
callback(touch);
|
callback(touch);
|
||||||
}
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue