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.84k stars 1.26k forks source link

Undo a resized straight line object not working #827

Open dongup opened 1 year ago

dongup commented 1 year ago

Describe the bug If we draw a straight line then resize it and try undo -> object does not go back to the original size. As far as I know this only happen on LINE shape. RECT, TRIANGLE, CIRCLE work fine

To Reproduce Steps to reproduce the behavior:

  1. Draw an straight line
  2. Resize the line
  3. Undo change
  4. See error

Expected behavior Straight line object should go back to the original size

Video (https://drive.google.com/file/d/10uuHwOYzwVs01j8KuLvJCxtn33p4eY8B/view)

Desktop (please complete the following information):

lja1018 commented 1 year ago

@dongup Checked for bugs. I'll fix it.