mirror of
https://github.com/zadam/trilium.git
synced 2025-10-16 02:18:29 +08:00
fix dirtying transform saved status by properly cloning transform object
This commit is contained in:
parent
a065a610c1
commit
1ce26ed704
1 changed files with 2 additions and 1 deletions
|
@ -209,7 +209,8 @@ function saveCurrentTransform() {
|
|||
const newTransform = pzInstance.getTransform();
|
||||
|
||||
if (JSON.stringify(newTransform) !== JSON.stringify(mapData.transform)) {
|
||||
mapData.transform = newTransform;
|
||||
// clone transform object
|
||||
mapData.transform = JSON.parse(JSON.stringify(newTransform));
|
||||
|
||||
saveData();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue