Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glitch in loop autoscroll #1333

Open
2 tasks done
dr-ananthakrishna opened this issue Sep 12, 2024 · 0 comments
Open
2 tasks done

Glitch in loop autoscroll #1333

dr-ananthakrishna opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dr-ananthakrishna
Copy link

Checks

Version

v4.1.4

Description

Hi,
When I use auto scroll with loop there is a glitch kind of jerky movement at the end of list.
I have attached recoding with 6 items, as you can see at the end of list as 1 comes up to the middle there is a jerky movement.
Please help

Reproduction Link

No response

Steps to Reproduce

const elements = document.getElementsByClassName('splide');

        for (let i = 0; i < elements.length; i++) {
          const slider = new Splide(elements[i], {
            arrows: false,
            pagination: false,
            scroll: false,
            drag: false,
            type: 'loop',
            autoScroll: {
              speed: 2,
              pauseOnHover: false
            },
            focus  : 'center',
            perPage: 3,
          });

          sliderInstances.push(slider);

          slider.mount(window.splide.Extensions);
        }
      }

### Expected Behaviour

Scroll should be smooth
@dr-ananthakrishna dr-ananthakrishna added the bug Something isn't working label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant