From ceb7c724ed26eed313a3741c5aa0be258f5838b5 Mon Sep 17 00:00:00 2001 From: latentflip Date: Thu, 9 Dec 2010 23:40:43 +0000 Subject: [PATCH] Added no select --- canvasdraw.js | 1 + popup.html | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/canvasdraw.js b/canvasdraw.js index 274e953..4e24a75 100644 --- a/canvasdraw.js +++ b/canvasdraw.js @@ -35,6 +35,7 @@ function init() { //set height and width to size of device window canvas.setAttribute("height", (window.innerHeight - toolbarHeight) + "px"); canvas.setAttribute("width", window.innerWidth + "px"); + canvas.onselectstart = function () { return false; } //add touch and mouse event listeners canvas.addEventListener('mousedown', onMouseDown, false); diff --git a/popup.html b/popup.html index 7c3f872..a67a83d 100644 --- a/popup.html +++ b/popup.html @@ -15,6 +15,7 @@ input, textarea {width: 284px;} textarea {height: 50px;} p, form {padding: 0; margin:0;} + small {font-size: 60%;} .hidden {display: none;} @@ -30,7 +31,16 @@

Add story to Pivotal

- +
+ +
+ + l - draw line, + c - draw oval, + r - draw rectangle +
+ ⌘+z - undo +