MCPcopy
hub / github.com/jscad/OpenJSCAD.org / touchend

Function touchend

src/ui/viewer/lightgl.js:1515–1525  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

1513 }
1514
1515 function touchend(e) {
1516 // Shrink the event handlers back to the canvas when dragging ends.
1517 off(document, 'touchmove', touchmove);
1518 off(document, 'touchend', touchend);
1519 on(gl.canvas, 'touchmove', touchmove);
1520 on(gl.canvas, 'touchend', touchend);
1521 gl = context;
1522 e = augmentTouchEvent(e);
1523 if(gl.ontouchend) gl.ontouchend(e);
1524 e.preventDefault();
1525 }
1526
1527 function reset() {
1528 hasOld = false;

Callers 1

touchmoveFunction · 0.85

Calls 3

offFunction · 0.85
onFunction · 0.85
augmentTouchEventFunction · 0.85

Tested by

no test coverage detected