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

Method constructor

src/gesture-recognizers.js:214–258  ·  view source on GitHub ↗

* @param {string} type * @param {!./gesture.Gestures} manager * @param {boolean} horiz * @param {boolean} vert

(type, manager, horiz, vert)

Source from the content-addressed store, hash-verified

212 * @param {boolean} vert
213 */
214 constructor(type, manager, horiz, vert) {
215 super(type, manager);
216
217 /** @private {boolean} */
218 this.horiz_ = horiz;
219
220 /** @private {boolean} */
221 this.vert_ = vert;
222
223 /** @private {boolean} */
224 this.eventing_ = false;
225
226 /** @private {number} */
227 this.startX_ = 0;
228
229 /** @private {number} */
230 this.startY_ = 0;
231
232 /** @private {number} */
233 this.lastX_ = 0;
234
235 /** @private {number} */
236 this.lastY_ = 0;
237
238 /** @private {number} */
239 this.prevX_ = 0;
240
241 /** @private {number} */
242 this.prevY_ = 0;
243
244 /** @private {time} */
245 this.startTime_ = 0;
246
247 /** @private {time} */
248 this.lastTime_ = 0;
249
250 /** @private {time} */
251 this.prevTime_ = 0;
252
253 /** @private {number} */
254 this.velocityX_ = 0;
255
256 /** @private {number} */
257 this.velocityY_ = 0;
258 }
259
260 /** @override */
261 onTouchStart(e) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected