Skip to content

Undoing a sprite move in map edit mode also resets map zoom #2950

@nighca

Description

@nighca

Background

There is a bug in the map editor undo behavior.

When editing a project in map edit mode, undoing a sprite move can also reset the current map zoom level. That part is unexpected.

Reproduction

  1. Open a project in the editor
  2. Enter map edit mode
  3. Zoom in the map
  4. Move a sprite to a new position
  5. Trigger Undo

Actual behavior

  • The sprite position is reverted
  • The map zoom is also reset back to the default scale

Expected behavior

  • The sprite position should be reverted
  • The current map zoom level should remain unchanged

Notes

Undo should only revert the sprite position change. View-state such as the current map zoom should not be reset as part of that operation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions