Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo Many Events At Once #204

Open
Rampastring opened this issue Oct 15, 2024 · 0 comments
Open

Undo Many Events At Once #204

Rampastring opened this issue Oct 15, 2024 · 0 comments

Comments

@Rampastring
Copy link
Member

Rampastring commented Oct 15, 2024

Currently, undo/redo is strictly event based. Each time you Undo, only one event is undone. Sometimes it would be desirable to undo a larger amount of events at once.

For example, if you paint or alter the height of a large chunk of tiles at once by drag-painting on the map, you might want to undo the whole drag-paint in case you messed up with it. Drag-painting can generate several, or in the worst case, even dozens of events per second. Undoing such a sequence of events currently can take an annoyingly high amount of time due to requiring several presses of Undo to undo the whole drag-sequence.

For this, events could probably contain an event ID or time field when they were performed, and pressing Undo would not only undo the latest event, but all events with the same ID, or recursively, all events of the same type that have been performed within X seconds of the latest event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant