Make ASCII draw mode default for mobile, and make X the default freeform value

This commit is contained in:
Lewis Hemens 2014-03-25 22:03:08 +00:00
parent 95e38fc208
commit c31ba0fdd5
2 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ ascii.Controller.prototype.handleDrawButton = function(id) {
this.drawFunction = new ascii.DrawLine(this.state);
}
if (id == 'freeform-button') {
this.drawFunction = new ascii.DrawFreeform(this.state, SPECIAL_VALUE);
this.drawFunction = new ascii.DrawFreeform(this.state, "X");
}
if (id == 'erase-button') {
this.drawFunction = new ascii.DrawErase(this.state);

View File

@ -14,7 +14,7 @@ ascii.View = function(state) {
/** @type {ascii.Vector} */ this.offset = new ascii.Vector(7500, 7500);
/** @type {boolean} */ this.dirty = true;
// TODO: Should probably save this setting in a cookie or something.
/** @type {boolean} */ this.useLines = TOUCH_ENABLED;
/** @type {boolean} */ this.useLines = false;
this.resizeCanvas();
};