basilio/responsiveCarousel

No swipe? Chrome on iPhone

Opened this issue · 1 comments

I'm loving responsiveCarousel and one of the reasons we looked here was because of swipe by default...

But testing from Chrome on iPhone on the demo page I can't swipe any carousels to advance them. Also tested Safari on iPhone - fail. Any word?

hi @pioneerwebsites, it's quite long time, there is bug in touchend coordinates grabing - you need to replace line
defaults.swipeDistance = defaults.endCoords.pageX - defaults.startCoords.pageX;
with
defaults.swipeDistance = e.originalEvent.changedTouches[0].pageX - defaults.startCoords.pageX;

Hope it will help