AudithSoftworks / Uniform

A jQuery plugin to make your form controls look how you want them to. Now with HTML-5 attributes!
http://opensource.imanov.net/uniform/
MIT License
2.2k stars 339 forks source link

Radio and check not functioning in Android 2.2 browser #57

Closed lukeheuer closed 13 years ago

lukeheuer commented 13 years ago

Only tested on the Android 2.2 browser (Chrome Mobile), I'm assuming previous versions are affected as well. Both elements do not change states when touched. All other elements work perfectly though.

You could also add Mobile Safari 3+ to the Tested & Compatible browsers, just checked and it's working flawlessly on there.

pixelmatrix commented 13 years ago

Interesting, I havent tried on Mobile. Not sure if it's something that should be enabled on mobile browsers. Maybe I can make it a preference. Anyway, I think I know what's wrong. It's probably relying on touch events instead of click events.

lukeheuer commented 13 years ago

Yeah definitely. iOS wraps mouse events into appropriate touch events pretty well. On Android I've had good luck setting up listeners for ontouchstart and ontouchend events in parallel to make sure all is smooth.

pixelmatrix commented 13 years ago

Cool, i'll add support for those events, and let you know when it's in, then i'll have to have you test it to make sure it's fixed. Thanks for the warning.

pixelmatrix commented 13 years ago

Ok, so I added touchbegin and touchend events. Can you give it a shot and see if it works now? It seems kind of strange that it's not automatically mapping the click events to touch events.

lukeheuer commented 13 years ago

Cool, just had a minute to test it. It's working perfectly. Thanks!

pixelmatrix commented 13 years ago

Awesome!