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

超快速拖拽后,列表顺序与绑定数据完全混乱,无法保持同步 #20

Open
paperadio opened this issue Jun 1, 2023 · 1 comment

Comments

@paperadio
Copy link

paperadio commented Jun 1, 2023

Electron项目,PC上,鼠标操作。当极快速(疯狂)进行拖拽操作时,只需要10次以内,就会让界面上看到的行次序与实际绑定的数据的次序完全失步,即人眼看上去的顺序和实际能得到的数据顺序完全不一致了。比如看到的行id是2,6,3,绑定数据其实是6,3,2。
虽然这种操作几乎只会在极限测试和近乎恶意的操作情况下才会发生,但由于没有一个明确的边界,所以并不能排除用户在偶然的几次快速操作下导致数据和界面失步,且这种错误一旦发生,用户是很难察觉的。
该现象目前可以稳定复现,目测感觉好像是在拖拽操作的放开阶段,还没有复位完毕时继续疯狂拖拽,就能复现该问题。
刚在https://www.mizuka.top/el-table-draggable/index.html#/ 上试了一下,很容易就可以复现。复现后,该页面下方的数据显示框和上面看到的次序会完全不一致。

@mizuka-wu
Copy link
Owner

mizuka-wu commented Jun 2, 2023 via email

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

2 participants