Make ASCII draw mode default for mobile, and make X the default freeform value
This commit is contained in:
parent
95e38fc208
commit
c31ba0fdd5
|
@ -169,7 +169,7 @@ ascii.Controller.prototype.handleDrawButton = function(id) {
|
||||||
this.drawFunction = new ascii.DrawLine(this.state);
|
this.drawFunction = new ascii.DrawLine(this.state);
|
||||||
}
|
}
|
||||||
if (id == 'freeform-button') {
|
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') {
|
if (id == 'erase-button') {
|
||||||
this.drawFunction = new ascii.DrawErase(this.state);
|
this.drawFunction = new ascii.DrawErase(this.state);
|
||||||
|
|
|
@ -14,7 +14,7 @@ ascii.View = function(state) {
|
||||||
/** @type {ascii.Vector} */ this.offset = new ascii.Vector(7500, 7500);
|
/** @type {ascii.Vector} */ this.offset = new ascii.Vector(7500, 7500);
|
||||||
/** @type {boolean} */ this.dirty = true;
|
/** @type {boolean} */ this.dirty = true;
|
||||||
// TODO: Should probably save this setting in a cookie or something.
|
// TODO: Should probably save this setting in a cookie or something.
|
||||||
/** @type {boolean} */ this.useLines = TOUCH_ENABLED;
|
/** @type {boolean} */ this.useLines = false;
|
||||||
|
|
||||||
this.resizeCanvas();
|
this.resizeCanvas();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue