Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing drawn on touch only (without touchmove) #15

Open
karlwhite opened this issue Jul 6, 2013 · 2 comments
Open

Nothing drawn on touch only (without touchmove) #15

karlwhite opened this issue Jul 6, 2013 · 2 comments

Comments

@karlwhite
Copy link

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
Copy link
Author

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
Copy link

valix85 commented Mar 26, 2015

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants