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

Function startSoThatEndsAtMax

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

Source from the content-addressed store, hash-verified

497 'Cannot pinch by a distance of zero.');
498 }
499 function startSoThatEndsAtMax(offsetVec) {
500 if (distance < 0) {
501 var magnitude = offsetVec.magnitude();
502 offsetVec.scale(magnitude ? (magnitude + distance) / magnitude : 0);
503 }
504 }
505 var halfDistance = distance / 2;
506 function scaleByHalfDistance(offsetVec) {
507 var magnitude = offsetVec.magnitude();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected