DrawingCell.prototype._registerTouch = function()

in web/src/drawing.js [119:134]


    DrawingCell.prototype._registerTouch = function() {
        this._canvas.addEventListener('touchstart', function(e) {
            e.preventDefault();
            this._paths.push([this._touchPosition(e)]);
        }.bind(this));
        this._canvas.addEventListener('touchmove', function(e) {
            e.preventDefault();
            this._paths[this._paths.length - 1].push(this._touchPosition(e));
            this._redraw();
        }.bind(this));
        var onEnd = function() {
            this.onChange();
        }.bind(this);
        this._canvas.addEventListener('touchend', onEnd);
        this._canvas.addEventListener('touchcancel', onEnd);
    };