nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.58k stars 9.75k forks source link

Slides jumps when dragging between last and first slide in loop mode #2402

Closed udovichenko closed 6 years ago

udovichenko commented 6 years ago

This is a (multiple allowed):

What you did

I am dragging looped swiper between first and last slide.

Expected Behavior

Smooth animation, when pointer keeps the same position over a slide while dragging.

Actual Behavior

Swiper instantly jumps to ~half of slide width to left or right (depends on dragging direction).

It looks like a position calculation error when duplicated slides is beeing appended or removed. But I'm not sure... This bug is easier to observe in free mode, but it also presents without free mode. Here's a gif, that illustrates the issue: swiper-looped-dragging-bug

I found 2yo topic on forum with the same issue description http://idangero.us/swiper/forum/#!/bugs-and-issues:loop-with-freemod-itll-j without replies. It also has a gif, that illustrates this issue.

I really hope for a solution to this problem in the near future, because it is critical for a project I'm working on at the moment, and I really do not want to exchange my beloved Swiper to another slider such as Flickity))

Thanks!

zahod5277 commented 6 years ago

+1