Skip to content

[Bug Report]: 画布鼠标移动事件不生效 #2103

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

Open
PandaGoAdmin opened this issue Mar 8, 2025 · 5 comments
Open

[Bug Report]: 画布鼠标移动事件不生效 #2103

PandaGoAdmin opened this issue Mar 8, 2025 · 5 comments
Labels
优化 New feature or request

Comments

@PandaGoAdmin
Copy link

发生了什么?

使用lf!.on("blank:mousemove",onMouseMove) 监听画布鼠标移动事件不生效。onMouseMove函数未执行。

Image

logicflow/core版本

2.0.11

logicflow/extension版本

2.0.15

logicflow/engine版本

No response

浏览器&环境

Chrome

@PandaGoAdmin PandaGoAdmin added the bug Something isn't working label Mar 8, 2025
@DymoneLewis
Copy link
Collaborator

👌🏻我们复现看下

@DymoneLewis
Copy link
Collaborator

🤔朋友我用demo试了一下没有复现出这个问题来(https://codesandbox.io/p/devbox/logicflow2-0demo-kv7vn5 727~731行),能提供一个demo这边调试看看吗

@PandaGoAdmin
Copy link
Author

🤔朋友我用demo试了一下没有复现出这个问题来(https://codesandbox.io/p/devbox/logicflow2-0demo-kv7vn5 727~731行),能提供一个demo这边调试看看吗

我看了案例,案例中的blank:mousemove事件是画布拖拽事件(画布拖拽)才调用的。而不是鼠标移动事件,我需要的是鼠标在画布上移动获取移动的事件信息。

@DymoneLewis
Copy link
Collaborator

🤔朋友我用demo试了一下没有复现出这个问题来(https://codesandbox.io/p/devbox/logicflow2-0demo-kv7vn5 727~731行),能提供一个demo这边调试看看吗

我看了案例,案例中的blank:mousemove事件是画布拖拽事件(画布拖拽)才调用的。而不是鼠标移动事件,我需要的是鼠标在画布上移动获取移动的事件信息。

哦这个意思,那确实现在没有,可以加下

@DymoneLewis DymoneLewis added 优化 New feature or request and removed bug Something isn't working labels Mar 24, 2025
@PandaGoAdmin
Copy link
Author

🤔朋友我用demo试了一下没有复现出这个问题来(https://codesandbox.io/p/devbox/logicflow2-0demo-kv7vn5 727~731行),能提供一个demo这边调试看看吗

我看了案例,案例中的blank:mousemove事件是画布拖拽事件(画布拖拽)才调用的。而不是鼠标移动事件,我需要的是鼠标在画布上移动获取移动的事件信息。

哦这个意思,那确实现在没有,可以加下

好的感谢,目前blank:mousemove和blank:drag事件是相同的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
优化 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants