MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / createTouchEventTouchList

Function createTouchEventTouchList

javascript/atoms/events.js:473–488  ·  view source on GitHub ↗
(touchListArgs)

Source from the content-addressed store, hash-verified

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) {

Callers 1

createTouchListFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected