| 471 | } |
| 472 | |
| 473 | function createTouchEventTouchList(touchListArgs) { |
| 474 | /** @type {!Array<!Touch>} */ |
| 475 | var touches = goog.array.map(touchListArgs, function (touchArg) { |
| 476 | return new Touch({ |
| 477 | identifier: touchArg.identifier, |
| 478 | screenX: touchArg.screenX, |
| 479 | screenY: touchArg.screenY, |
| 480 | clientX: touchArg.clientX, |
| 481 | clientY: touchArg.clientY, |
| 482 | pageX: touchArg.pageX, |
| 483 | pageY: touchArg.pageY, |
| 484 | target: target |
| 485 | }); |
| 486 | }); |
| 487 | return touches; |
| 488 | } |
| 489 | |
| 490 | function createTouchList(touchStrategy, touches) { |
| 491 | switch (touchStrategy) { |