You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two issues here, sort of packed into one. First: logic around _.slideCount % _.options.slidesToScroll !== 0 makes the slider jump randomly in some cases after animation. Second: the logic for cases around _.slideCount % _.options.slidesToScroll !== 0 seem to cause behavior that was decided arbitrarily. For instance,
a)
When using Infinite mode where _.slideCount % _.options.slidesToScroll !== 0, say 10 slides, slidesToScroll === 3,
Given the user presses previous once,
Then the math for the animation in _.getLeft does not match the math at the end of the animation from _.setPositioon, so the slider jumps to a different spot.
b)
When using Infinite mode where _.slideCount % _.options.slidesToScroll !== 0, say 10 slides, slidesToScroll === 3,
Given the user presses next to go from slide 7 to slide 10,
Then the slider animates to slide 5.
why would we always want to start back over at the first slide when we cycle through pressing
Next
?====================================================================
https://codepen.io/samjacobs/pen/RwrRdxR
====================================================================
Steps to reproduce the problem
a)
When using Infinite mode where
_.slideCount % _.options.slidesToScroll !== 0
, say 10 slides, slidesToScroll === 3,Given the user presses previous once,
Then the math for the animation in
_.getLeft
does not match the math at the end of the animation from_.setPositioon
, so the slider jumps to a different spot.b)
When using Infinite mode where
_.slideCount % _.options.slidesToScroll !== 0
, say 10 slides, slidesToScroll === 3,Given the user presses next to go from slide 7 to slide 10,
Then the slider animates to slide 5.
====================================================================
What is the expected behaviour?
a) Pressing previous from the first slide, with
slidesToScroll
being3
and 10 slides, , I would expect to jump to slide # 8.b) I would the slides to animate to slide 10, and then pressing again to animate to slide 3.
====================================================================
What is observed behaviour?
a) The slides animate to the correct slide, then jump to slide 5.
b) The slide animates to slide 5.
====================================================================
More Details
The text was updated successfully, but these errors were encountered: