Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request obsoletes "topic-tap-doubletap-longpress (#2)". All functionality created in that branch is now encapsulated in TapRecognizer.js. TapRecognizer emits "tap", "doubletap" and "press" events. To use:
TapRecognizer.getOriginByTouchIdentifier(identifier) will get you the source object that piped the touch events into the TapRecognizer. TapRecognizer.getTouchEventByIdentifier(identifier) will get you the entire 'touch'. The .on() function demonstrated above is simply a convenience accessor to tapRecognizer.eventOutput.on(). Likewise, .bindThis() is just sugar for the eventOutput's .bindThis(). TapRecognizer registers with EventHandler, so standard .pipe to and .subscribe from calls are fine.
The only option is "emitEveryTap". 'true' emits every tap; 'false' suppresses the 'tap' event before a 'doubletap' event. Default is 'true'. Setting emitEveryTap to 'false' slows down tap processing as the TapRecognizer buffers the events until the correct determination can be made. If fast responses (<300ms) are needed, the event receiver will have to handle undesired 'tap' events preceding every 'doubletap'.