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

Function createTouchList

javascript/atoms/events.js:490–500  ·  view source on GitHub ↗
(touchStrategy, touches)

Source from the content-addressed store, hash-verified

488 }
489
490 function createTouchList(touchStrategy, touches) {
491 switch (touchStrategy) {
492 case bot.events.TouchEventStrategy_.MOUSE_EVENTS:
493 return createGenericTouchList(touches);
494 case bot.events.TouchEventStrategy_.INIT_TOUCH_EVENT:
495 return createNativeTouchList(touches);
496 case bot.events.TouchEventStrategy_.TOUCH_EVENT_CTOR:
497 return createTouchEventTouchList(touches);
498 }
499 return null;
500 }
501
502 // TODO(juangj): Always use the TouchEvent constructor, if available.
503 var strategy;

Callers 1

events.jsFile · 0.85

Calls 3

createGenericTouchListFunction · 0.85
createNativeTouchListFunction · 0.85

Tested by

no test coverage detected