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

Remove item on Windows may cause an infinite loop of measure #17

Open
xtuzy opened this issue Sep 19, 2023 · 1 comment
Open

Remove item on Windows may cause an infinite loop of measure #17

xtuzy opened this issue Sep 19, 2023 · 1 comment

Comments

@xtuzy
Copy link
Owner

xtuzy commented Sep 19, 2023

Windows上多次移除会造成measure无限循环,界面卡死

default.mp4
@xtuzy
Copy link
Owner Author

xtuzy commented Sep 19, 2023

b9802f5 对其进行了修复, 不再出现无限循环

MAUICollecitonVIew_remove_ok.mp4

我猜测是之前多测量了一个在目标矩形外的Item, 导致测量它后又立即回收它造成了循环,因此修复的代码是减少了这次测量。但这个修复原理存疑, 我在MeasureItem中的RecycleViewHolder处设置断点, 发现滑动和删除顶部左边的item会触发断点

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