MCPcopy
hub / github.com/SnapDrop/snapdrop / _onTouchEnd

Method _onTouchEnd

client/scripts/ui.js:198–205  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

196 }
197
198 _onTouchEnd(e) {
199 if (Date.now() - this._touchStart < 500) {
200 clearTimeout(this._touchTimer);
201 } else { // this was a long tap
202 if (e) e.preventDefault();
203 Events.fire('text-recipient', this._peer.id);
204 }
205 }
206}
207
208

Callers 2

_bindListenersMethod · 0.95
_onTouchStartMethod · 0.95

Calls 1

fireMethod · 0.80

Tested by

no test coverage detected