diff --git a/README.md b/README.md index 6149b77..89e69a6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Check it out: http://writeboard.nodester.com Features -------- The only, yet main, feature are the rooms. -When you access the Writeboard via http://writeboard.nodester.com you'll be redirected to a new room with a random identifier. But, if you want your rooms to have an easy name to remember, you can go straight to http://whiteboard.nodester.com/gtramontina for example. +When you access the Writeboard via http://writeboard.nodester.com you'll be redirected to a new room with a random identifier. But, if you want your rooms to have an easy name to remember, you can go straight to http://writeboard.nodester.com/gtramontina for example. Tips ---- @@ -15,7 +15,7 @@ Tips Roadmap ------- -- Keep drawings in the room so that new attendees can see what's been drawn so far. +- Keep drawings in the room so that new attendees can see what's been drawn so far. (DONE: improvement required though) - Make password-protected private rooms, so you can have a safe meeting. - Add 'Save as... PNG/JPEG' option, for emailing the board to the attendees. - (...) diff --git a/public/javascripts/writeboard-page.coffee b/public/javascripts/writeboard-page.coffee index 606230c..8206cad 100644 --- a/public/javascripts/writeboard-page.coffee +++ b/public/javascripts/writeboard-page.coffee @@ -20,13 +20,13 @@ writeboardPage = -> (loading 'Loading. Please wait...').show() writeboard = createWriteboard dom.canvas[0], window.innerWidth, window.innerHeight + dom.canvas.bind 'selectstart', -> false dom.helpButton.click -> $.get '/about', { noLayout: true }, (aboutPage) -> about = $ "#{aboutPage}" about.hide() dom.body.append about about.fadeIn() - dom.canvas.bind 'selectstart', -> false enableCanvas = (drawings) -> replay writeboard, drawings diff --git a/public/javascripts/writeboard.coffee b/public/javascripts/writeboard.coffee index 04afe6a..a342998 100644 --- a/public/javascripts/writeboard.coffee +++ b/public/javascripts/writeboard.coffee @@ -13,6 +13,7 @@ startDrawing = (x, y) -> [lastX, lastY] = [x, y] context.beginPath() + context.moveTo x, y lastCanvasData = context.getImageData 0, 0, width, height draw x+.1, y+.1 @@ -25,7 +26,7 @@ context.stroke() [lastX, lastY] = [x, y] - stopDrawing = -> # ? + stopDrawing = -> lastX = lastY = 0 # ? setColor 'rgba(20, 20, 20, 0.8)'