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

Method onTouchBegan

tools/xsbug/CodeView.js:323–327  ·  view source on GitHub ↗
(code, id, x, y, ticks)

Source from the content-addressed store, hash-verified

321 this.onTouchSelect(code, this.x, this.y);
322 }
323 onTouchBegan(code, id, x, y, ticks) {
324 code.captureTouch(id, x, y, ticks);
325 this.captured = code;
326 this.onTouchBeganMode(code, id, x, y, ticks, CHAR_MODE);
327 }
328 onTouchBeganMode(code, id, x, y, ticks, mode) {
329 code.focus();
330 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