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

flickMaxPages option is ignored #71

Open
2 tasks done
leventdeniz opened this issue Jun 22, 2023 · 3 comments
Open
2 tasks done

flickMaxPages option is ignored #71

leventdeniz opened this issue Jun 22, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@leventdeniz
Copy link

Checks

Version

0.7.12

Description

This is my Splide component with options:

 <Splide
    options={{
      perPage: 1,
      perMove: 1,
      autoWidth: true,
      gap: 16,
      arrows: false,
      pagination: true,
      focus: 'center',
      flickMaxPages: 1,
      flickPower: 1,
      drag: true,
      snap: true,
    }}
  >

Now if i scroll real fast/flick it skips a lot of slides and does not only flick 1 slide at the time.

Reproduction Link

No response

Steps to Reproduce

have 3 or more items in basic slide configuration and flick real fast

Expected Behaviour

it should only go one slide at a time

@leventdeniz leventdeniz added the bug Something isn't working label Jun 22, 2023
@leventdeniz
Copy link
Author

Bildschirmaufnahme.2023-06-22.um.17.37.36.mov

got a quick demo + code
https://codesandbox.io/s/pedantic-cookies-kpprl2?file=/src/index.tsx

@DanielSpindler
Copy link

same problem here. any approaches?

@DanielSpindler
Copy link

Playing around with the Flickpower solved it for me. 600 is the default flickPower for anyone wondering. flickMaxPages defaults to 1 anyways.

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

2 participants