MCPcopy Create free account
hub / github.com/ampproject/amphtml / acceptStart

Method acceptStart

src/gesture-recognizers.js:329–340  ·  view source on GitHub ↗

@override

()

Source from the content-addressed store, hash-verified

327
328 /** @override */
329 acceptStart() {
330 this.eventing_ = true;
331 // Reset start coordinates to where the gesture began to avoid visible
332 // jump, but preserve them as "prev" coordinates to calculate the right
333 // velocity.
334 this.prevX_ = this.startX_;
335 this.prevY_ = this.startY_;
336 this.prevTime_ = this.startTime_;
337 this.startX_ = this.lastX_;
338 this.startY_ = this.lastY_;
339 this.emit_(true, false, null);
340 }
341
342 /** @override */
343 acceptCancel() {

Callers

nothing calls this directly

Calls 1

emit_Method · 0.95

Tested by

no test coverage detected