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

Method startTracking_

src/pull-to-refresh.js:86–92  ·  view source on GitHub ↗

* @param {number} startPos * @private

(startPos)

Source from the content-addressed store, hash-verified

84 * @private
85 */
86 startTracking_(startPos) {
87 this.tracking_ = true;
88 this.startPos_ = startPos;
89 this.doc_.addEventListener('touchmove', this.boundTouchMove_, true);
90 this.doc_.addEventListener('touchend', this.boundTouchEnd_, true);
91 this.doc_.addEventListener('touchcancel', this.boundTouchCancel_, true);
92 }
93
94 /** @private */
95 stopTracking_() {

Callers 1

onTouchStart_Method · 0.95

Calls 1

addEventListenerMethod · 0.45

Tested by

no test coverage detected