pictode icon indicating copy to clipboard operation
pictode copied to clipboard

[BUG]The draw tool cannot display the content when it is drawn quickly, but the history is updated

Open renshengyiyijihe opened this issue 1 year ago • 2 comments

Bug Report / The draw tool cannot display the content when it is drawn quickly, but the history is updated

Describe the bug The draw tool cannot display the content when it is drawn quickly, but the history is updated.

To Reproduce

  1. Using draw
  2. Quick drag

期望行为 / Expected behavior The drawing content is displayed normally.

截图 / Screenshots 20240911-174708

附加上下文 / Additional context 我建议如果这个框架想发展的更好,这段代码我认为应该去掉或者作为默认选项。因为这是你的主观判断。最好支持用户传参自定义判断。

renshengyiyijihe avatar Sep 11 '24 09:09 renshengyiyijihe

这个BUG可以给录个视频吗?我没有还原出来

image 这里确实可以当作默认值来处理

JessYan0913 avatar Sep 11 '24 10:09 JessYan0913

@JessYan0913 你可以这样试试,快速拖拽然后离开光标。就会出现。我认为这种逻辑属于业务逻辑,不应该加在工具库里面。

https://github.com/user-attachments/assets/6bb10dc7-db58-4fe7-ab79-45d58a32c4d0

renshengyiyijihe avatar Sep 29 '24 03:09 renshengyiyijihe