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

Method onTouchEnded

tools/xsbug/CodeView.js:826–830  ·  view source on GitHub ↗
(content, id, x, y, ticks)

Source from the content-addressed store, hash-verified

824 content.captureTouch(id, x, y, ticks);
825 }
826 onTouchEnded(content, id, x, y, ticks) {
827 content.state = 1;
828 if (content == content.container.hit(x, y))
829 this.onTap(content);
830 }
831 onTouchMoved(content, id, x, y, ticks) {
832 content.state = (content == content.container.hit(x, y)) ? 3 : 2;
833 }

Callers 1

doTouchEndedMethod · 0.45

Calls 2

hitMethod · 0.65
onTapMethod · 0.45

Tested by

no test coverage detected