Nothing drawn on touch only (without touchmove)
Opened this issue · 2 comments
karlwhite commented
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
No matter... found the fix in this pull request: #6
(adding this.context.lineTo(action.events[0].x+0.1, action.events[0].y+0.11);
to the draw function)
valix85 commented
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);