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

[Bug report]使用撤销(lf.undo),节点移动、拖拽节点放开data里面x,y的值没有变化 #1370

Closed
zhangluluaichimi opened this issue Oct 17, 2023 · 1 comment · Fixed by #1381
Labels
bug Something isn't working

Comments

@zhangluluaichimi
Copy link

问题描述

请用简洁的语言描述你遇到的 bug,至少包括以下部分,如提供截图请尽量完整:

  1. 问题触发的条件,如何复现:使用撤销(lf.undo),再次拖拽节点时,data中,x,y的数据一直保持不变
  2. 期望的表现:不管什么操作,都希望在拖拽节点,节点拖拽放开data中的x,y都是最新的坐标
  3. 实际的表现:使用撤销(lf.undo),节点移动(node:mousemove)、拖拽节点放开(node:drop)data中的x,y都没有更新

最简复现

一般来说通过文字和截图的描述我们很难定位到问题,为了帮助我们快速定位问题并修复,请选择以下方式编写并上传最简复现 demo:

  1. 在任意在线编码平台如 codesanbox 编写示例。将其保存到自己空间,然后贴上链接。
    https://codesandbox.io/s/logicflow-selection-forked-dp6h29?file=/index.html(链接)
  2. 在自己 github 中创建一个最简单的示例,然后贴上 github 链接。
  3. 删除项目中的 node_modules 部分,打包项目,并拖拽到 issue 输入框中上传(或提供远程可下载地址)。

相关信息 context

LogicFlow Version:
Node Version:
Platform:

@wumail wumail changed the title 使用撤销(lf.undo),节点移动、拖拽节点放开data里面x,y的值没有变化[Bug report] [Bug report]使用撤销(lf.undo),节点移动、拖拽节点放开data里面x,y的值没有变化 Oct 17, 2023
@wumail wumail added the bug Something isn't working label Oct 17, 2023
wbccb added a commit to wbccb/LogicFlow that referenced this issue Oct 21, 2023
@zhangluluaichimi
Copy link
Author

1370问题被关闭,下载最新的模块,但是依然还是存在该问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants