fix: group object delete after restore position (fix #356) #367
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please check if the PR fulfills these requirements
fix #xxx[,#xxx]
, where "xxx" is the issue number)버그
다중 선택된 객체들을 백스페이스로 삭제 후 되돌리기(undo) 를 했을때 되돌려진 객체의 포지션이 정확하지 않음
버그원인
graphics.getActiveObjectIdForRemove
에서 멀티셀렉트된 객체들을 한번에 삭제하기위해 group을 만들어줄때 group의 포지션을 모름으로, 되돌릴때 x, y (0, 0)의 잘못된 포지션으로 되돌려줌해결방법
삭제를 위한 group을 만들때 삭제되기 전의 오리지날 포지션을 정확히 넣어줌
Thank you for your contribution to TOAST UI product. 🎉 😘 ✨