MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / scaleByHalfDistance

Function scaleByHalfDistance

javascript/atoms/action.js:506–509  ·  view source on GitHub ↗
(offsetVec)

Source from the content-addressed store, hash-verified

504 }
505 var halfDistance = distance / 2;
506 function scaleByHalfDistance(offsetVec) {
507 var magnitude = offsetVec.magnitude();
508 offsetVec.scale(magnitude ? (magnitude - halfDistance) / magnitude : 0);
509 }
510 bot.action.multiTouchAction_(element,
511 startSoThatEndsAtMax,
512 scaleByHalfDistance,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected