mobomo / sketch.js

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

#23 - Fix when using sketch.js on mobile devices #25

Closed marioquirino closed 10 years ago

marioquirino commented 10 years ago

Fix when using sketch.js on mobile devices, due to the touchend/touchcancel events never get fired.

I did this on my end, directly on javascript and it works. I believe these changes are the coffeescript equivalent. I did not test nor compile the project though.

This also fixes issue #19.

FatalSam commented 3 years ago

Good Day,

Do perhaps have the final fix code? I have downloaded and installed the code from https://github.com/poupougnac/sketch.js I am still battling with Chrome mobile on the android phone, my colleague Chrome works fine can sign on the canvas but mine it doesn't work when i lift the finger and touch it again erases everything. Before I downloaded the fix all the browsers were behaving the same, now it's only some.

Regards Sam

Fix when using sketch.js on mobile devices, due to the touchend/touchcancel events never get fired.

I did this on my end, directly on javascript and it works. I believe these changes are the coffeescript equivalent. I did not test nor compile the project though.

This also fixes issue #19.