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

版本:3.0.14,调用item点击事件后notifyDataSetChanged,item的拖拽事件就不灵敏了,必现 #3868

Open
jeff-sun opened this issue May 21, 2024 · 1 comment

Comments

@jeff-sun
Copy link

mAdapter.itemAdapterClick = { parentPos, adapter, childPos ->
ToastUtils.showShort("点击了")
mAdapter.notifyDataSetChanged()
}
itemAdapter.draggableModule.isDragEnabled = true
itemAdapter.setOnItemClickListener { adapter, view, position ->
if (::itemAdapterClick.isInitialized) {
itemAdapterClick.invoke(layoutPosition, itemAdapter, position)
}
}
使用版本3.0.14,过程是:正常情况下拖拽是没有问题的,当点击item后,再长按拖拽事件,拖拽事件就会失效,感觉是冲突的样子

@jeff-sun
Copy link
Author

44eb8b49aba4dddfca9183b7f389745c.mp4

刚开始拖拽没问题,点击后,再拖拽就会大概率失效

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