(e)
| 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; |
no test coverage detected