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

滑动太快会导致无法滑动到下一个 #169

Open
LasyIsLazy opened this issue Feb 9, 2023 · 0 comments
Open

滑动太快会导致无法滑动到下一个 #169

LasyIsLazy opened this issue Feb 9, 2023 · 0 comments

Comments

@LasyIsLazy
Copy link

看到代码里是对滑动时间做了限制,导致快速滑动的时候,deltaTime 太短(小于100ms),没有滑动到下一个。

if (deltaTime > this.config.thresholdTime || deltaTime < 100) {
this.slide(currentPage)
return false
}

期望开放对 deltaTime 的配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant