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

[New Feature] bounce距离太大 体验不好 #478

Closed
littleGauze opened this issue Mar 6, 2018 · 6 comments
Closed

[New Feature] bounce距离太大 体验不好 #478

littleGauze opened this issue Mar 6, 2018 · 6 comments

Comments

@littleGauze
Copy link

What problem does this feature solve?

在手机上快速滑动,根据文档和滑动速度计算的bounce值太大,体验不好。并且快速滑动文档会溢出容器,不会回弹,需要再滑动才会回弹。希望可以自定义bounceDistance。

What does the proposed API look like?

options.bounceDistance

@littleGauze
Copy link
Author

是内嵌到app webview中的

@ustbhuangyi
Copy link
Owner

你是觉得滚动距离太大,可能会导致回弹过远?可以去配置 deceleration,https://ustbhuangyi.github.io/better-scroll/doc/zh-hans/options.html#deceleration
该值越大,速度衰减的越快,滚动距离越小

@littleGauze
Copy link
Author

找不到一个合适的值 尽管设到0.006了只会影响正常(文档中间)滑动速度,文档两端快速滑动,bounce滚动距离还是太大。

@ustbhuangyi
Copy link
Owner

@littleGauze ,对比了一下端的一些列表,确实它们不会滚动太远,这个我做一下优化吧

@ustbhuangyi
Copy link
Owner

ustbhuangyi commented Mar 7, 2018

@littleGauze ,试一下 1.8.4 版本

@littleGauze
Copy link
Author

@ustbhuangyi 现在好多了 多谢

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

No branches or pull requests

2 participants