From c31ba0fdd5f12265998286fabc9bd99843e4dfeb Mon Sep 17 00:00:00 2001 From: Lewis Hemens Date: Tue, 25 Mar 2014 22:03:08 +0000 Subject: [PATCH] Make ASCII draw mode default for mobile, and make X the default freeform value --- js-lib/controller.js | 2 +- js-lib/view.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js-lib/controller.js b/js-lib/controller.js index 5def314..d17b1fe 100644 --- a/js-lib/controller.js +++ b/js-lib/controller.js @@ -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); diff --git a/js-lib/view.js b/js-lib/view.js index 8f8c033..6f6d767 100644 --- a/js-lib/view.js +++ b/js-lib/view.js @@ -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(); };