MCPcopy
hub / github.com/ampproject/amphtml / start

Method start

src/motion.js:149–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148 /** */
149 start() {
150 this.continuing_ = true;
151 if (
152 Math.abs(this.maxVelocityX_) <= MIN_VELOCITY_ &&
153 Math.abs(this.maxVelocityY_) <= MIN_VELOCITY_
154 ) {
155 this.fireMove_();
156 this.completeContinue_(true);
157 } else {
158 this.runContinuing_();
159 }
160 return this;
161 }
162
163 /**
164 * Halts the motion. The motion promise will be rejected since the motion

Callers 6

launchPercyAgentFunction · 0.45
createKarmaServerFunction · 0.45
applyMediaAttrs_Method · 0.45
continueMotionFunction · 0.45
playAdsFunction · 0.45
updateMethod · 0.45

Calls 3

fireMove_Method · 0.95
completeContinue_Method · 0.95
runContinuing_Method · 0.95

Tested by

no test coverage detected