Open eligundry opened 12 years ago
Glad I found your fix eligundry. It has fixed the issue of not drawing on Android. +1
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.
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.
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.