MCPcopy Create free account
hub / github.com/microsoft/SandDance / TapRecognizer

Function TapRecognizer

docs/app/js/sanddance-app.js:93977–93986  ·  view source on GitHub ↗

* A tap is ecognized when the pointer is doing a small tap/click. Multiple taps are recognized if they occur * between the given interval and position. The delay option can be used to recognize multi-taps without firing * a single tap. * * The eventData from the emitted event contains the proper

()

Source from the content-addressed store, hash-verified

93975 * @constructor
93976 * @extends Recognizer
93977 */ function TapRecognizer() {
93978 Recognizer.apply(this, arguments);
93979 // previous time and center,
93980 // used for tap counting
93981 this.pTime = false;
93982 this.pCenter = false;
93983 this._timer = null;
93984 this._input = null;
93985 this.count = 0;
93986 }
93987 inherit(TapRecognizer, Recognizer, {
93988 /**
93989 * @namespace

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected