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

sketch is not continous & getting previous stroke onmouseout in ajax call #20

Open
iam-raheem opened this issue Nov 21, 2013 · 1 comment

Comments

@iam-raheem
Copy link

Hello,
I used sketch.js for my drawing. i have 2 issues here.

1 - I'm not able to draw line continuously (long stroke). It taking some gaps & then it is filling.

2 - I have 4 images & using same canvas for all images. If i draw a line & den go to next image (ajax call & clearing canvas also) & onmouseout i'm getting the previously drawn line. I don't know why ? plz help me
it is very urgent ..

@srinu4122
Copy link

add these lines in sketch.js prototypes
Sketch.prototype.clear = function() {
this.actions = [];
return this.redraw();
};

Add these lines in sketch.js tools
$.sketch.tools.d = {
onEvent: function(e){
this.clear();
}
};

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