1j01 / guitar

🎸 Online guitar toy and tablature recorder/player
https://1j01.github.io/guitar/
MIT License
110 stars 18 forks source link

Selection clears redo #23

Open 1j01 opened 6 years ago

1j01 commented 6 years ago

Also it doesn't restore selections when undoing/redoing, it just selects everything. redo broken by selection

1j01 commented 6 years ago

After implementing undo/redo button graying (when there are no undos/redos), it's clear it's actually the unfocusing logic (which parses and stringifies tablature) redo broken by selection or rather unfocusing by the parsing and stringification logic

https://github.com/1j01/guitar/blob/21b3b3c9d13c54397ef822fd6f48d50e51bba29a/src/app.coffee#L220-L226