Can't override readonly props

This commit is contained in:
Luis Leiva 2018-04-28 19:54:19 +02:00
parent c2af62845a
commit 68b018c979
2 changed files with 0 additions and 10 deletions

View File

@ -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);
} }
}; };

View File

@ -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();