-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fixes #29 - Add undo #65
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to have a single undo stack rather than 1 stack per layer. Currently, switching to a different layer and pressing undo will only undo changes on that layer.
I'd like these steps to work:
- Change X position of Background layer
- Add new layer
- Press undo
- See X position of Background layer reset
Would also be nice if add/delete layer could be undone. I'm OK leaving that for another PR.
src/editor/main.js
Outdated
copyLayer | ||
); | ||
|
||
historyList = new Array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
historyList = new Array(); | |
historyList = [initialHistory]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for all the work here! It's a really cool new feature
Users are able to
control z
to get back to their preview settingsOne more thing, can you label this as
hacktoberfest