GoogleChromeLabs/ui-element-samples

Swipeable Cards and Side Nav are not working on iOS

carlosagsmendes opened this issue · 9 comments

Tested with Safari and Chrome on iPhone 6

Thanks, I'll take a look now.

Oh it's likely the use of ES2015 code.

Yeah:

babel --presets=es2015 swipeable-cards/cards.js --out-file swipeable-cards/cards-es5.js
babel --presets=es2015 side-nav/side-nav.js --out-file side-nav/side-nav-es5.js

"fixes" it. I'll add a note to the README.

The online samples have not been updated yet, right?

Updated how? I don't necessarily intend to put out ES5 versions of the code; it adds a level of complexity, which wasn't the intention of the project.

Ok, I didn't notice that. So the online samples won't work until the browsers fully support classes. Maybe that could be added to the readme? :)

Ah, sorry! Thanks 👍