Skip to content

Commit

Permalink
fix: mark no longer loses place after first recall (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellvix authored Jan 19, 2025
1 parent 0e3ee77 commit 54e4f9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,9 @@ class Control {
if (lastKey == 'm' && /[0-9]/.test(key)) {
const recallIndex = parseInt(key, 10);
if (constants.mark[recallIndex]) {
position = constants.mark[recallIndex];
position = JSON.parse(
JSON.stringify(constants.mark[recallIndex])
); // deep copy
control.UpdateAll();
}
}
Expand Down

0 comments on commit 54e4f9c

Please sign in to comment.