sourcebitsllc / chocolatechip-ui

Mobile Web App Framework
www.chocolatechip-ui.com
MIT License
617 stars 88 forks source link

Popovers not working correctly in iOS or Android #52

Open kumarharsh opened 10 years ago

kumarharsh commented 10 years ago

In the demo in android, when the user clicks on an popover list item, the list does not close, nor does the selected item get set (it's erratic, sometimes it does, sometimes it fails)

Also, in iOS, after the popover list closes, the list's label (Fruit/Deserts) is highlighted randomly and erratically.

sourcebits-robertbiggs commented 10 years ago

I assume you must be referring to the demo online from the website, right?

kumarharsh commented 10 years ago

No, not only the demo. I've tried the demo in the Safari in iPhone 5S and Chrome in Samsung Galaxy S2 too. The demos are buggy.

sourcebits-robertbiggs commented 10 years ago

Actually, the funky stickiness of selected states is being caused by mobile browsers trying to apply the desktop hover states. I have a simple fix that can resolve that. I just need to go through all the LESS files to make sure that all instances of :hover only get applied on desktop browsers. As far as Android event bugginess, that unfortunately is the sad state of Android Web browsers. It takes me twice as long to fix the browser bugs on Android as compared to iOS and Windows Phone 8 combined. Try browsing the Android browser forum to see the frustration of developers with the many bugs, and the Android browser team's disinterest in address many of the most egregious bugs. Android browser events are extremely flaky. Sometimes they fire, sometimes they don't and sometimes they fire two are three times and other times they leak through to interactive objects below, causing them to suddenly execute. That said, feel free to download the source code and try modifying the code to your satisfaction. It's all broken down into small, modular parts. You just might find a solution and would love to get a pull request that could fix any of the Android event issues. By the way, give me a couple of days to check in the hover fixes. Oh, and thanks for the typo callout. Taken care of.

kumarharsh commented 10 years ago

Thanks for your reply. Unfortunately, I've got some other projects on my plate right now, so won't be able to contribute to ChocoChip for some time. I'll keep an eye on the progress though. :)