nhn / tui.image-editor

🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
http://ui.toast.com/tui-image-editor
MIT License
6.98k stars 1.29k forks source link

React using draw function then using shape function. Then select all, object always stick mouse. #609

Open coolman90011 opened 3 years ago

coolman90011 commented 3 years ago

As title,React us @toast-ui/react-image-editor V3.14.3 https://codesandbox.io/s/elegant-germain-s6gc0?file=/src/DrawBorad.js this is demo here.

And when I use "import ImageEditor from '@toast-ui/react-image-editor/src';" I must add "src" in the last string. But there is no bug in V3.14.2.

Load a picture, using draw function then using shape. Then select all object and will show fail and all object always stick mouse.

When I select all object (include draw object and shape object) , if will show fail. image

But in @toast-ui/react-image-editor V3.14.2 has no this bug.

https://codesandbox.io/s/serene-taussig-8nnq7?file=/src/Drawbox.js

This is using @toast-ui/react-image-editor V3.14.2, it can select to different object.

Can any one help?

lja1018 commented 3 years ago

@coolman200 Thank you for the bug report. I reproduced it and found no error when I use the shape after draw and selecting all the objects in the demo. Is it right to go next?

  1. Draw
  2. Shape
  3. Select all objects (draw + shape)
coolman90011 commented 3 years ago

@lja1018 You can change @toast-ui/react-image-editor to V3.14.3, 1.Draw 2.Shape 3.Select all objects (draw + shape) 4.Click all objects to move. image

It will show error.