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

通过VirtualTileBox动态生成列表,按钮点击事件被重复多次 #407

Open
lengkristy opened this issue Apr 15, 2022 · 4 comments

Comments

@lengkristy
Copy link

问题现象

通过VirtualTileBox动态生成列表,按钮点击事件被重复多次

1650003038(1)
1650003068(1)
关键代码:
1650003102(1)
点一次按钮,函数OnPreviewBtnClickEvent被掉了很多次,我猜想是name同名的原因,但是我看了demo也是同名,代码也是一样,很奇怪。
这是我的xml:
1650003181(1)

@nmgwddj
Copy link
Collaborator

nmgwddj commented May 26, 2022

在 Demo 中能否重现您提到的问题?

@alancaven
Copy link

这里在class内加一个变量来记录是否AttachClick过事件就行了

@smallevilbeast
Copy link
Contributor

AttachBubbledEvent(ui::kEventClick

@xiangh105
Copy link

VirtualTileBox滚动时有遇到一跳一跳的吗?滚动不流畅的感觉?

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

5 participants