From 54e4f9cb3b6bf6dcfade9b6af2db0a9156df4938 Mon Sep 17 00:00:00 2001 From: ellvix Date: Sat, 18 Jan 2025 18:37:28 -0700 Subject: [PATCH] fix: mark no longer loses place after first recall (#628) --- src/js/controls.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/controls.js b/src/js/controls.js index ff9a0bccc..fedadd47e 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -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(); } }