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

城市联动选择bug #52

Open
Sanchez3 opened this issue Jul 4, 2017 · 3 comments
Open

城市联动选择bug #52

Sanchez3 opened this issue Jul 4, 2017 · 3 comments

Comments

@Sanchez3
Copy link

Sanchez3 commented Jul 4, 2017

picker.change事件是监控当滚动停止时触发。
倘若误操作or非正规操作下,当滚动没有停止时确定,城市关联出现问题

wechatimg20

是否还有其他监控事件,当滚动事件开始,第一级改变时第二三级清空,当滚动停止时触发关联。
谢谢

@figo-fe
Copy link

figo-fe commented Sep 5, 2017

这个问题很好解决,在picker.js Line64 后面增加

code

解释:
循环所有wheel,检测是否正在进行动画,是的话立即触发scrollEnd,并且跳出循环

@ustbhuangyi
Copy link
Owner

https://ustbhuangyi.github.io/better-scroll/#/examples/picker 推荐看看这个

@figo-fe
Copy link

figo-fe commented Sep 13, 2017

老大,你发的链接倒是能解决问题,有源码么

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

3 participants