Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

外部通过currentIndex属性从数组中获取值时可能会越界 #17

Closed
xygkevin opened this issue Apr 15, 2020 · 6 comments
Closed

Comments

@xygkevin
Copy link

定时器任务中currentIndex++造成的,建议优化

@maltsugar
Copy link
Owner

具体怎么越界的 能否提供demo, 或者详细描述下怎么发生的

@maltsugar
Copy link
Owner

一个cell 和 多个cell 我都试过了 currentIndex 并没有问题

@xygkevin
Copy link
Author

image

@xygkevin
Copy link
Author

我看了你的代码,你在内部使用currentIndex的时候做了纠正处理,但是并没有针对外部调用的时候考虑临界值的问题

@xygkevin
Copy link
Author

把滚动间隔时间设置的大一点,就容易复现了

@maltsugar
Copy link
Owner

已修复,非常感谢

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

No branches or pull requests

2 participants