ianli / raphael-sketchpad

A simple drawing editor that you can easily include with your forms
http://ianli.github.io/raphael-sketchpad/
249 stars 70 forks source link

Remove user agent sniffing so touch events work on all mobile devices #6

Open eligundry opened 12 years ago

eligundry commented 12 years ago

I saw that you were manually detecting iPod Touches and iPhones for the touch events, and, as a result, it wasn't working on my iPad or Android devices. So, I went ahead and removed those conditionals so it will work of all devices that support them.

ARH-Digital commented 10 years ago

Glad I found your fix eligundry. It has fixed the issue of not drawing on Android. +1

gaucho1978 commented 8 years ago

yes it works on android, but if i zoom the webpage with a pinch, and then i draw, the line is not drawn under my finger, but in another location.

gaucho1978 commented 8 years ago

some problems solved: https://github.com/gaucho1978/raphael-sketchpad/commit/fe1c43704473ddf571e0ec668a62c655f950bb9d

it is a bug related to offset() call that appears on chrome for android after a pinch. I solved it. I also allowed the ability to pinch and pan with 2 fingers and to draw with one finger. i also made some other minor changes. see them all on the link.