MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / onTouchBegan

Method onTouchBegan

tools/xsbug/behaviors.js:343–346  ·  view source on GitHub ↗
(code, id, x, y, ticks)

Source from the content-addressed store, hash-verified

341 this.onTouchSelect(code, this.x, this.y);
342 }
343 onTouchBegan(code, id, x, y, ticks) {
344 code.captureTouch(id, x, y, ticks);
345 this.onTouchBeganMode(code, id, x, y, ticks, CHAR_MODE);
346 }
347 onTouchBeganMode(code, id, x, y, ticks, mode) {
348 code.focus();
349 if ((ticks - this.touchTicks < 1000) && (this.touchX == x) && (this.touchY == y)) {

Callers

nothing calls this directly

Calls 2

onTouchBeganModeMethod · 0.95
captureTouchMethod · 0.65

Tested by

no test coverage detected