Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Resizing something that has drag handles causes each individual resize to go onto the undo stack #133

Open
city41 opened this issue Aug 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@city41
Copy link
Owner

city41 commented Aug 4, 2021

repro:

  1. add a conveyor belt to a level
  2. using its drag handle, drag it to be really long, then really short, then let go
  3. press undo

expected: the conveyor belt returns to its original size before any dragging happened

actual: each one tile change in size gets recorded as an action, so you have to press undo many times to get the conveyor belt back

NOTE: this should be easy to do by adding a group for resize events in editorSlice

@city41 city41 added the bug Something isn't working label Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant