Skip to content

Undo/Redo functionality is broken #934

@MichaelZawadzki

Description

@MichaelZawadzki

Expected Behavior

Using undo should undo 1 user action. Pressing redo should redo the last undo action.

Actual Behavior

Lots of strange things are happening. In the simplest example of just placing some blocks pressing undo removes some of the inner shadow blocks, and also places blocks in the upper-left.

Steps to Reproduce

  1. Launch the playground from current sources
  2. Drag several blocks onto the stage: say 1 move block + 1 turn left block + 1 turn right block
  3. Right-click on the workspace and click undo
  4. Bug -> notice the last placed blocked is not removed but instead the inner shadow block disappears.

Further undo actions after this create more buggy behavior:
5) Next undo seems to actually remove the block
6) Next 2 undo's behave like the 1st 2
7) 5th undo makes a block appear in the upper-left

Additionally, clicking Redo does not redo the actions (bugged or not). It might not be worth commenting more about this given undo is broken.

Operating System and Browser

Chrome on Mac

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions