-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Node is moved just by clicking on it #3702
Comments
👋 @adeas31 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. |
My guess is that the mouse position flutters when clicked, causing the node to move. You can add the moveThreshold parameter to test the effect. |
@adeas31 May I ask whether the above answer solves your problem? |
@NewByVector the moveThreshold option does not work. I can still move the node just with single click. |
Can you provide an example that can be repeated? |
I am testing with very basic example https://codesandbox.io/s/rl62nt Here is the code,
On the codesandbox it works as expected i.e., to move a node you click hold and drag it. On my machine it moves just with click i.e., when I do a single click on a node without holding and dragging it. So the node follows the cursor after one click and then I need to click again to stop it from moving. |
@NewByVector did you manage to reproduce the issue? |
It feels like codesanbox's problem. |
No, the codesandbox works as expected. |
Everything is normal on my machine. |
@adeas31 are you found the solution for this issue? I have similar problem as your |
No, I didn't found any solution yet. I also didn't get time to work on it. I am guessing it has something to do with the version compatibility between X6 and NodeJS. |
@NewByVector
|
I confirm this behaviour. It works fine for me also on my local machine when I remove the |
I faced the same issue. My workaround is to use Xflow. You can try it with the quick start example, and you will see that the node can only be moved by dragging." |
问题描述
I followed the basic tutorial example. I noticed that the node is moving just by clicking on it. So if I click on the node and then move the cursor then the node moves as well. I expect it to move with click and drag as it is doing in all the online examples.
重现链接
No link
重现步骤
Click on the node and then move without holding/dragging the click. The node moves around.
预期行为
Should move with only click and drag.
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: