PlayMyCode / SkyBrush

pure-JS HTML5 embeddable painting application
http://www.studiofortress.com/skybrush
Other
60 stars 17 forks source link

support touch events (ie mobile) #1

Closed domi-papin closed 12 years ago

domi-papin commented 12 years ago

Remark : superb peace of code, thank you !!!

JosephLenton commented 12 years ago

IE mobile will be tricky, as I don't own an IE device. If they have an emulator available, that will be the best I can try it on.

However I have already started on adding touch support for iOS (I own an iPad 3). I recently added support to use HTML input 'range' type for sliders (where available), specifically because they tend to work better on touch devices then a custom slider.

Right now I've started unifying the mouse and touch events. That way it should 'just work'.

domi-papin commented 12 years ago

I'm currently reading about the mess that are touch events (but i probably should say the mess that is mobile)

At the end of this post by rey bango, i've found IE10 is said to create a newly-abstracted pointer event type ( one unifying touch and mouse events, even stylus).
https://github.com/PlayMyCode/SkyBrush/issues/1#issuecomment-5355661

There's even a recent post on blog.jquery.com summarizing history of touch events and revealing patent mess also ...

And finally, a spec documentation on MDN : https://developer.mozilla.org/en/DOM/Touch_events

Glad, you're working on it !!!

domi-papin commented 12 years ago

Ooops, rey bango post is not on skybrush obviously but here http://blog.reybango.com/2012/04/09/ios-to-ie10-metro-building-cross-browser-plugin-free-experiences/

JosephLenton commented 12 years ago

iPad support is now in.