cubiq / SwipeView

Virtually infinite loop-able horizontal carousel
MIT License
698 stars 167 forks source link

transitionend not firing on Android 4.2.2 #75

Open Gerarddus opened 10 years ago

Gerarddus commented 10 years ago

I implemented SwipeView in a Cordova 3.5.0 project. All seems to be working fine, except on Android 4.2.2 there's a problem. SwipeView detects the "transitionend" event on the Android native browser, but unfortunately this event is not implemented by this browser. "webkitTransitionend" is, however. After some googling I found that Modernizr had the same problems (for Android 4.1). They fixed it over here: https://github.com/bpierre/vue/commit/057c0867c75b2f69a399234a874d226c7d6d76a6

I propose the same solution for SwipeView:

var vendors = 'webkitT,t,MozT,msT,OT,t'.split(','),