Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ensuring that drag does not move slides more thanoptions.flickMaxPages allows#1118

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Kreeg wants to merge1 commit intoSplidejs:master
base:master
Choose a base branch
Loading
fromIT-GRI:master

Conversation

@Kreeg
Copy link

Description

If you drag the slider too fast, it moves more thanoptions.flickMaxPages.
For example, there is a problem with caused with this config.

{  flickMaxPages: 1,  perMove: 1,  perPage: 1,}
video5411494184043422802.mp4

In this video you can see that sometimes slider moves more than 1 page. After some digging I found that this iscomputeDestinations problem. In fact, it'sgetPosition that causes this error. If you drag fast, it calculates that you are already at the next slide, but in reality, you are not.
So in this case I just added a new additional check that splide does not move more than it should.

Sorry for no related issue. This started as a local critical bug on our website so we can't wait too long. We have already switched to a forked version and have tested it in production mode. But I added more unit-tests to be sure.

@KreegKreeg changed the titleEnsuring that drag does not move slides more than allowsEnsuring that drag does not move slides more thanoptions.flickMaxPages allowsMar 9, 2023
@simonbrunel
Copy link

Sorry for no related issue.

@Kreeg actually, there is at least one:#1002

Kreeg reacted with eyes emoji

@tomikaka22
Copy link

Would love this to be fixed.

@Kreeg
Copy link
Author

You can switch to our fork for nownpm i git@github.com:IT-GRI/splide.git

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Kreeg@simonbrunel@tomikaka22

[8]ページ先頭

©2009-2025 Movatter.jp