community icon indicating copy to clipboard operation
community copied to clipboard

移动墨迹时仅保留始末位置作为撤销回退节点

Open iceblock1313 opened this issue 2 months ago • 4 comments

检查清单 | Checklist

  • [x] 您确认此功能不存在于最新版本 | You confirm that this feature does not exist in the latest version.
  • [x] 您确认此功能有开发的必要 | You confirm that this feature is worth developing.
  • [x] 您确认此功能无法通过开发插件/自动化实现 | You confirm that this feature cannot be implemented through a plugin or automation.
  • [x] 您没有为软件提交 Pull Request 或开发插件的能力 | You are unable to submit a Pull Request or develop a plugin for this software.
  • [x] 您了解开发者无法及时回复和及时开发 | You understand that developers may not respond or implement features promptly.
  • [ ] 我已经仔细阅读过选项里的内容,并且知道这个选项不用勾选。 | I have carefully read the options and know that this option does not need to be checked.

功能描述 | Description

在移动墨迹后,仅把始末位置作为撤销的回退节点,使用撤销仅会回退一个完整的移动动作,而不是每一个像素的移动动作。

需求动机 | Motivation

在白板中绘制了一些东西,使用选择功能移动墨迹后想撤销,会发现墨迹每一个像素的移动都被记录为了一个单独的撤销节点,这导致撤销功能变得非常难用,要摁非常非常多次才能完整地撤销整个移动动作。

期望设计 | Expected Design

鼠标摁下,并且进行了任何移动动作->在处理移动前记录当前位置作为一个撤销节点 开始移动墨迹->不产生任何撤销节点 鼠标抬起,停止移动->此位置作为一个撤销节点,(如果用户又进行了后续更改的话)这里按照你原本的代码逻辑处理就好。

其他补充信息 | Additional Info

No response

上传有关文件 | Upload relevant files

No response

iceblock1313 avatar Sep 14 '26 14:09 iceblock1313

未复现(

CJKmkp avatar Sep 16 '26 04:09 CJKmkp

啊这(?)会不会是需要触摸屏上操作才能复现?

iceblock1313 avatar Sep 16 '26 04:09 iceblock1313

我复现了就发视频上来

iceblock1313 avatar Sep 16 '26 04:09 iceblock1313

啊这(?)会不会是需要触摸屏上操作才能复现?

有没有可能我就是触摸(

CJKmkp avatar Sep 16 '26 10:09 CJKmkp