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

Method constructor

src/gesture-recognizers.js:476–514  ·  view source on GitHub ↗

* @param {!./gesture.Gestures} manager

(manager)

Source from the content-addressed store, hash-verified

474 * @param {!./gesture.Gestures} manager
475 */
476 constructor(manager) {
477 super('tapzoom', manager);
478
479 /** @private {boolean} */
480 this.eventing_ = false;
481
482 /** @private {number} */
483 this.startX_ = 0;
484
485 /** @private {number} */
486 this.startY_ = 0;
487
488 /** @private {number} */
489 this.lastX_ = 0;
490
491 /** @private {number} */
492 this.lastY_ = 0;
493
494 /** @private {number} */
495 this.tapCount_ = 0;
496
497 /** @private {number} */
498 this.prevX_ = 0;
499
500 /** @private {number} */
501 this.prevY_ = 0;
502
503 /** @private {time} */
504 this.lastTime_ = 0;
505
506 /** @private {time} */
507 this.prevTime_ = 0;
508
509 /** @private {number} */
510 this.velocityX_ = 0;
511
512 /** @private {number} */
513 this.velocityY_ = 0;
514 }
515
516 /** @override */
517 onTouchStart(e) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected