mobomo / sketch.js

A jQuery plugin for dead simple Canvas-based drawing.
http://intridea.github.com/sketch.js
291 stars 110 forks source link

Nothing drawn on touch only (without touchmove) #15

Open karlwhite opened 11 years ago

karlwhite commented 11 years ago

Very new to sketch.js, so I apologize if I have missed something obvious, however I have found that nothing is drawn if you simply tap within the canvas (without actually moving away from the touchstart point).

Any idea how I could go about doing that? (i.e. simply touching a part of the canvas leaves a single 'blob'?)

Edit: I should note that this same behavior occurs on mobile (iPad) and desktop browsers.

karlwhite commented 11 years ago

No matter... found the fix in this pull request: https://github.com/intridea/sketch.js/pull/6

(adding this.context.lineTo(action.events[0].x+0.1, action.events[0].y+0.11); to the draw function)

valix85 commented 9 years ago

where i can wirte it? before what? or after what line? in which line? i this.context.lineTo(action.events[0].x+0.1, action.events[0].y+0.11);