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

绑定事件未解绑问题,导致操作过多事卡顿 #3930

Closed
bighhhh opened this issue Sep 25, 2023 · 5 comments
Closed

绑定事件未解绑问题,导致操作过多事卡顿 #3930

bighhhh opened this issue Sep 25, 2023 · 5 comments

Comments

@bighhhh
Copy link
Contributor

bighhhh commented Sep 25, 2023

Describe the bug

目前发现transform.js中startListening()方法绑定的事件为解绑,所以在选中节点然后点击空白处取消选中,重复以上操作就会绑定非常多的事件,导致越操作越卡顿,当刷新页面后虽然画布节点完全一致时也会变的非常流畅,目前只查看了这一个插件的事件绑定问题,其他插件是否有同样问题不确定

Your Example Website or App

Steps to Reproduce the Bug or Issue

可以查看我发送的断点图片,反复选中节点取消选中后,事件列表中的时间数量是不断增长的,而且我在transform.js的update中打了日志断点后,日志输出数量也会跟随事件数量不断增多,导致重复调用,而stopListening()函数却从来没调用过

Expected behavior

取消选中后解除事件绑定

Screenshots or Videos

1
2
3
4

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.1.7]

Additional context

No response

@bighhhh bighhhh changed the title 绑定事件未解绑问题 绑定事件未解绑问题,导致操作过多事卡顿 Sep 25, 2023
@NewByVector
Copy link
Contributor

升级到 1.35.0。

@bighhhh
Copy link
Contributor Author

bighhhh commented Sep 26, 2023

升级到 1.35.0。

我是用的2.0的啊,我的x6-plugin-transform是用的2.1.7

@NewByVector
Copy link
Contributor

@bighhhh 2.x 也修改了 等待版本发布哈。

@bighhhh
Copy link
Contributor Author

bighhhh commented Sep 26, 2023

@bighhhh 2.x 也修改了 等待版本发布哈。

好的,谢谢

@x6-bot
Copy link
Contributor

x6-bot bot commented Sep 26, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants