mobomo / sketch.js

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

Drawing dots not working #43

Open jribbink opened 8 years ago

jribbink commented 8 years ago

When you just click and don't move the mouse, sketch.js doesn't draw a dot. Is there any way to enable this?

jribbink commented 8 years ago

I have largely narrowed down this issue and I now assume that somebody will have an answer now. I have dealt with actually drawing the dots, and that's no issue whatsoever (I just draw an arc on mouseup). Now the issue is that sketch.js calls this line of code in it's "redraw" function: this.el.width = this.canvas.width();. For whatever reason, this line of code removes the dot I have drawn. I tried removing this line, but the drawing looks all weird afterwards.