akiran / akiran/react-slick

slickGoTo has the wrong animation direction when moving from the first to last index

Đang mở
#1,869 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug priority: High
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### "slickGoTo" has the wrong animation direction when moving from the first to last index and from last to first

Codesandbox example: https://codesandbox.io/s/slickgoto-issue-dhf76
Steps to reproduce:

- Go to https://dhf76.csb.app/
- Click on 1, 2, 3 and you'll see that the animation works ok
- Now try clicking on 1 and then 10
Current result: The animation moves to the right from 1 all over to 10.
Expected result: The animation moves to the left just 1 slide.

This happens either way if infinite is set to true in center mode

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.