Skip to content

Undoing one by one object after deleting/duplicating group of objects #11

@Amark19

Description

@Amark19

Describe the bug
Basically there are couple of bugs associated here

  • Objects gets undo one by one in a group when we delete those in a single group.
  • Have to press ctrl + z 2 times to undo

To Reproduce
Steps to reproduce the behavior:

  1. Draw various objects in canvas
  2. select all the objects
  3. Delete those using ctrl+d
  4. And now press ctrl + z

Expected behavior
When we are deleted selected group of objects at one time then undo should not happen one by one instead entire group object should be undo

Screenshots

calcont-whiteboard-issue.1.mp4

Desktop (please complete the following information):

  • Windows
  • Brave

Additional contexts:

  • For undo,redo we currently using npm library fabric-history
  • Feel free to write custom algorithm for the same if you think this can't be resolved by library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfabricJSRequires bit knowledge of fabric JS

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions